Commit Graph

70 Commits

Author SHA1 Message Date
Pieter Nicolai 190014d421 updated calibre (2.59.0) (#22052) 2016-06-17 12:53:33 +01:00
Roman 63811d2503 updated calibre (2.58.0) (#21677) 2016-06-04 16:15:02 +01:00
Matt Wean 47383169de [WIP] Change artifact behavior to moving instead of symlinking (#13966)
* Change app artifact to move instead of link

First step towards change in installation behavior mentioned in [13201]

* Fix handling of binaries linked from inside of app bundles

Also adds `appdir` method for interpolation in stanzas

* Change appdir to root Applications directory

* Update 2-app tests

* Refactor: add options, ivars to `Installer`, `Download`

In preparation for upcoming changes, this commit cleans up some code. The commit includes:

- In order to reduce unnecessary object passing, make both the `force` and `skip_cask_deps` option into instance variables of the `Installer` class

- Introduce options hashes to initializers of both the `Installer` and `Download` class

- When the `install --force` command enters the fetch phase, make it explicit in the code that fetching is never enforced in that case.

- Update tests

* Force overwrite artifacts on `--force` reinstall

This commit changes the behavior of a `Moved` artifact such that if the target already exists, `brew cask install --force` will remove the existing target before moving the staged artifact.

In that case, the warning message will say *overwriting* instead of *not moving*.

The behavior of plain `brew cask install` remains unchanged; the same goes for the warning message for that case.

* Change remaining artifacts to move instead of symlink

* Update casks to use appdir in binary paths

* Forcibly overwrite artifacts, modifying flags and using `sudo` if needed

- This commit implements [the proposed behavior for `install --force`](https://github.com/caskroom/homebrew-cask/pull/13966#issuecomment-220830387) when a target already exists and has either permission problems or is not owned by the user.

- The changes apply only when the `force` option is given.

- Reused the existing safeguard from the `.pkg` artifact to prevent deleting important directories by bug or mistake

- The two existing blacklists `SYSTEM_DIRS` and `UNDELETABLE_DIRS` have been consolidated into the `Hbc::MacOS` module.

- `UNDELETABLE_DIRS` now also contains all the entries from `SYSTEM_DIRS` which was a to-do anyway.

- The two blacklists are now also frozen for good measure.

- The utility method `permissions_rmtree` was moved to `Hbc::Utils`.

- The `tried_permissions` part in `Utils` now falls back correctly when there are also ownership issues at the same time.

- Introduced a separate `current_user` method for mocking.

- Added an optional feature to `FakeSystemCommand` so it can now act as a proxy to `SystemCommand`.

- Added tests for various `permissions_rmtree` cases.
2016-05-31 15:23:21 -04:00
Victor Popkov 46ec913aa8 updated calibre (2.57.1) (#21330) 2016-05-20 22:23:40 +03:00
Christian Inzinger d41dbf6b83 updated calibre (2.56.0) (#20868) 2016-04-29 12:14:06 +03:00
Vítor Galvão ac1a8e2381 updated calibre (2.55.0) (#20688) 2016-04-21 17:44:40 -04:00
Vítor Galvão 4372f55460 calibre.rb: fix conditional 2016-04-07 16:50:02 -04:00
Andrew King d270f59e59 updated calibre (2.54.0) 2016-04-02 13:44:56 -04:00
Jeffrey C 0121992db9 updated calibre (2.53.0) 2016-03-11 20:02:34 -05:00
adidalal e44c05cf5a updated calibre (2.52.0) 2016-02-26 18:26:55 +02:00
Victor Popkov fceead4b6e calibre.rb: upgrade to v2.51.0 2016-02-13 21:58:11 +02:00
Vítor Galvão b76c8ab954 updated calibre (2.50.1) 2016-01-30 00:06:07 +00:00
Victor Popkov 7fe0c0b366 calibre.rb: upgrade to v2.50.0 2016-01-29 18:24:55 +02:00
Josh Hagins 312ae841f1 Use Ruby 1.9 hash syntax in casks where possible 2016-01-17 21:57:28 -05:00
Lenucksi f99225e6b6 updated calibre (2.49.0) 2016-01-16 12:27:43 +00:00
Jeffrey C d8cf21d745 Update Calibre (2.49.0) 2016-01-15 18:56:24 -06:00
Vítor Galvão bbc9cc0138 change all appcast casks to use :checkpoint 2016-01-13 19:27:34 +00:00
Tommy Sparber 2ba5e93608 Updated calibre to use HTTPS 2016-01-12 13:14:51 +00:00
Josh Hagins 19fa4d1605 calibre.rb: RuboCop (master), RuboCop-cask (master) auto-correct 2016-01-03 15:28:49 -05:00
Victor Popkov 19e24eca9e calibre.rb: upgrade to v2.48.0 2016-01-02 23:33:26 +02:00
Vítor Galvão 77455c4749 added sha256 to appcast 2015-12-25 22:46:44 +00:00
Alex Balgavy c64c67ee5d Upgrade Calibre.app to v2.47.0
Changed formula to match latest Calibre release, 2.47.0.
2015-12-21 11:29:29 +00:00
Josh Hagins feba4ec740 Remove DSL versions from all casks 2015-12-17 20:15:28 -05:00
adityadalal924 0e612ea1a3 updated calibre (2.46.0) 2015-12-12 13:12:35 -05:00
Talha Mansoor 3b9d5f417f Upgrade calibre.app to v2.45.0 2015-11-27 14:30:08 +00:00
Victor Popkov 5908554697 calibre.rb: upgrade to v2.44.1 2015-11-16 17:37:31 -05:00
buo 03241f6043 Update calibre to 2.44.0 2015-11-14 02:25:25 +02:00
Victor Popkov 39fa148689 calibre.rb: upgrade to v2.43.0 2015-11-06 17:44:04 +02:00
buo bba3e129d5 Update calibre to 2.42.0 2015-10-30 15:08:31 +09:00
Victor Popkov 47e394fea2 calibre.rb: upgrade to v2.41.0 2015-10-19 02:32:37 +03:00
adityadalal924 e44db426ec added zap for calibre 2015-10-14 11:29:52 -04:00
Marius Butuc c55dfbc51e Update calibre to 2.40 2015-10-03 23:29:35 -04:00
Hassan Khalid 15ac32b799 Upgrade Calibre.app to 2.39.0 2015-09-26 18:00:08 +01:00
Victor Popkov e357c1c940 calibre.rb: upgrade to v2.38.0 2015-09-12 18:54:44 +03:00
adityadalal924 a78f5909f3 update calibre to 2.37.1 2015-09-05 18:41:39 +01:00
Vítor Galvão 918a5a2595 calibre.rb: download from calibre-ebook.com again 2015-08-30 12:51:29 +01:00
Dustin Miller 44ecfb5bd6 Updated Calibre formula to version 2.36.0 2015-08-28 22:37:44 +01:00
Ibraheem Zaman 9da3d1bf6e calibre: upgrade to v2.35.0 2015-08-14 19:38:10 +03:00
Visar Zejnullahu 26c4d91fec Upgrade calibre.app to v2.34.0 2015-08-07 14:52:04 +03:00
Will Stamper f1532a514f Upgrade Calibre.app to v2.33.0 2015-07-24 13:12:08 -04:00
Victor Popkov 4a4e8ceb6c calibre.rb: upgrade to v2.32.1 2015-07-18 20:14:14 +03:00
Victor Popkov 2389b9fee1 calibre.rb: upgrade to v2.32.0 2015-07-17 11:42:52 +01:00
Alex Dunn 9e74483c29 calibre: link binaries 2015-07-15 17:24:41 +01:00
Adé Mochtar 9636ad7fea Updated calibre to 2.31 2015-06-19 19:32:34 +02:00
Ryan Hendrickson df8e4b61ea calibre: add old version for pre-Mountain Lion 2015-06-17 10:48:32 -04:00
Alberto Núñez 6ef03fac1f Update calibre to 2.30.0 2015-06-07 00:42:49 +02:00
Vítor Galvão a400fce773 updated calibre (2.29.0) 2015-05-29 17:00:56 +01:00
Tadayoshi Sato 774109f721 Update Calibre to 2.28.0 2015-05-16 00:36:49 +09:00
Renato Moya 7798e3f477 Fix calibre cask version. 2015-05-02 22:50:54 -03:00
Zhongke Chen 9c0f37afaa upgrade calibre to 2.26 2015-04-24 16:18:37 +08:00