ProMotion 2.1.0.beta1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -33
  3. data/lib/ProMotion/version.rb +1 -1
  4. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 069e30500b3574a7ff83d4a179af392513ffac2b
4
- data.tar.gz: e7a65eb50f555d29c2b406deaf3f4bb0c9e88aa1
3
+ metadata.gz: a4ec0cb821081f967b54a5a719cb0144e97d4921
4
+ data.tar.gz: 42f01567d81eac734b854fb8f2d749207a755cb0
5
5
  SHA512:
6
- metadata.gz: 24902da29b4aef04a2620dd41a527052c39a3d9e5bcba5f556d3048cf83a7558b58c8b72ed28ae54f04c92dfb8b6bee847ce842b85c5f2ac6f574ddb70bb3dab
7
- data.tar.gz: 007f7044aa819c3ce5e1a9b4e16048886984bc65aaf8d8fd16757a43a481ef52753919a9e6d9eaa62ef54cbb217ab73865ed71c601167de11a744d2a8ef20e7c
6
+ metadata.gz: 042c8b42abce3767dfd6dc18e759391f2edc6018d56ef3438a99dc9d131dd5359a164cf0a693d07246d6b4b31aa7146940e757a29fdc290e8e98d4046206a7f6
7
+ data.tar.gz: 063f34003549f6d15c8782cd99b8ea921ce8d3ba80b6bc692f1f7e9e5ac294a792cc959c63654c6ef1988b50d1b8757a290259848770d56abf514de5a576efbd
data/README.md CHANGED
@@ -90,39 +90,13 @@ end
90
90
 
91
91
  # Changelog
92
92
 
93
- ## Version 2.0.0
94
-
95
- Overview: In ProMotion 2.0, we removed deprecated APIs, refactored and cleaned up a ton of code, pulled `PushNotification` and `MapScreen` into their own gems, and simplified the API. It now builds 55% faster and is 20%+ lighter.
96
-
97
- Follow our [Migration Guide](https://github.com/clearsightstudio/ProMotion/wiki/Migration-Guide:-ProMotion-1.2-to-2.0) for a painless upgrade.
98
-
99
- **API changes**
100
-
101
- 1. Extracted `PM::MapScreen` into [ProMotion-map](https://github.com/clearsightstudio/ProMotion-map)
102
- 2. Extracted `PM::PushNotification` into [ProMotion-push](https://github.com/clearsightstudio/ProMotion-push)
103
- 3. You can't pass a UIImage or UIView into a `title` anymore. Instead, pass a string into `title_image` (it'll fetch the image for you and create a UIImageView) or pass any arbitrary view into `title_view`. Now, `title` only takes a string title.
104
- 4. `on_create` has been renamed `screen_init` to avoid confusion with Android's `onCreate` method. It may be reintroduced in a future version of ProMotion as an alias of `onCreate`. We recommend using `on_init` instead.
105
- 5. `set_nav_bar_right_button` and `set_nav_bar_left_button` have been removed. Use `set_nav_bar_button :right` and `:left` instead.
106
- 6. Added `NSString#to_url` and `NSURL#to_url` helper methods to help clean up a lot of code.
107
- 7. `present_modal_view_controller` now takes two arguments: the ViewController and an argument hash. You shouldn't have been using it in the first place.
108
- 8. `open_in_tab` now properly opens screens in tabs that didn't have a nav_bar. This is probably the closest thing to a new feature in PM 2.0 that we have, even though it should have worked before.
109
- 9. Cell hash arbitrary values are no longer applied directly to the cell. Instead, use the style: hash to apply arbitrary attributes. [Example here](https://github.com/clearsightstudio/ProMotion/pull/457/files#discussion_r13211807).
110
- 10. Removed cell hash `:subviews` attribute. Instead, subclass `PM::TableViewCell` and add your own subviews there.
111
- 11. Actually, there is one new feature. It's called `longpressable`. By adding `longpressable` at the top of your `PM::TableScreen` and then supplying a `long_press_action:` in your cell hash, you can implement a different action for long presses on table cells.
112
- 12. We no longer insert the cell hash into the arguments hash passed into your cell tap action. If you need that data, pass it in manually.
113
- 13. Removed `add_element`, `add_view`, `remove_element`, `remove_view` aliases for `add` and `remove`.
114
- 14. `on_load` now fires on `viewDidLoad` instead of `loadView`. Added a new `load_view` hook for that method & you can set your own view in there. If you don't implement `load_view`, one will be created for you (per Apple's recommendations). This change shouldn't change much in your app except that if you're setting `self.view = something`, you should do it in `load_view`.
115
-
116
- **Internal changes:**
117
-
118
- 1. Removed `motion-require`. ProMotion now relies entirely on RubyMotion's built-in dependency detector.
119
- 2. Removed `rake spec:unit`, `rake spec:func`, `rake spec:single filename`. We don't really use these for development anymore.
120
- 3. Moved many files around into a more logical, simpler structure.
121
- 4. Removed `PM::Conversions`. The only helper we were using was the `objective_c_method_name` method, and that was only used in `PM::Styling`. So we moved it there.
122
- 5. New module, `PM::NavBarModule`. Moved any navigation controller methods into this module, cleaning up the `PM::ScreenModule` quite a bit.
123
- 6. Lots of code refactoring -- CodeClimate went from [2.47 to 3.35 GPA](http://clrsight.co/jh/8fi5l31nzs.png).
124
- 7. Much cleaner `open` code!
125
- 8. Converted several *slow* functional tests into *fast* unit tests with the same coverage.
93
+ ## Version 2.1.0
94
+
95
+ This release includes a few minor new features, but mainly it's a bugfix release and upgrading should go smoothly.
96
+
97
+ * Added `hide_nav_bar` option to screen init args
98
+ * `update_table_data` can now take `index_paths:` array to selectively update cells
99
+ * Table cell `style` has been changed to `properties`. `style` will persist as an alias for backwards-compatibility
126
100
 
127
101
  # API Reference
128
102
 
@@ -1,3 +1,3 @@
1
1
  module ProMotion
2
- VERSION = "2.1.0.beta1" unless defined?(ProMotion::VERSION)
2
+ VERSION = "2.1.0" unless defined?(ProMotion::VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ProMotion
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0.beta1
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamon Holmgren
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-10-31 00:00:00.000000000 Z
13
+ date: 2014-11-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: methadone
@@ -175,12 +175,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
175
175
  version: '0'
176
176
  required_rubygems_version: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - ">"
178
+ - - ">="
179
179
  - !ruby/object:Gem::Version
180
- version: 1.3.1
180
+ version: '0'
181
181
  requirements: []
182
182
  rubyforge_project:
183
- rubygems_version: 2.4.2
183
+ rubygems_version: 2.2.2
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: ProMotion is a fast way to get started building RubyMotion apps. Instead