user_time_zones 0.1.1 → 0.1.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63c040d850767d25e365889bd61d08a8d294ce2e
4
- data.tar.gz: 827e347f78558d703189a9ccea451e4614697aa4
3
+ metadata.gz: b6a339ca647643355e5769352e72be952ec4cc99
4
+ data.tar.gz: 7a8087aaff1683fccc6210ff9f06a5a20ea5da16
5
5
  SHA512:
6
- metadata.gz: 859e1635bf09a51578e24e536ced576fb4bef2191a8fbfcb625d1b421ee00c30975f154bbd0e4588892438206459fd1421c9b9b9b93ac944a0fde0ff0d296c56
7
- data.tar.gz: df2f3f787e7f59c62c87402fb7eb59d3a166f8b380edb9022c008bf991eee6f8ab3a7e6220a4d6220f4c38648838e0423174383da550e9c37e89d5296379d089
6
+ metadata.gz: 9e1925b35a9e28f94073fac981a3d38717b7227f704e31a0ec3adfd973720feadda45fa8846c58acd51788d749a49cc119f7c23bdc8ff6d1715a93bb9f14eb28
7
+ data.tar.gz: 306f665207950030d65991cea572bb0acdc2d2b09b211dca0d3f84ec06ed5c35ecfe65472ee449bdf1cebcedcb486ceb6657264de1553dfa99d8fb68bdcf273c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,20 @@
1
1
  # User Time Zones Changelog
2
2
 
3
3
 
4
+ ## [0.1.2] - September 29, 2017
5
+
6
+ No code changes, just permissions fixes to files in the gem build.
7
+
8
+
9
+ ## [0.1.1] - June 27, 2017
10
+
11
+ Added javascript support to install generator.
12
+
13
+
4
14
  ## 0.1.0 - June 14, 2017
5
15
 
6
- - Initial release
16
+ Initial release
17
+
18
+
19
+ [0.1.2]: https://github.com/tomichj/user_time_zones/compare/v0.1.1...v0.1.2
20
+ [0.1.1]: https://github.com/tomichj/user_time_zones/compare/v0.1.0...v0.1.1
data/README.md CHANGED
@@ -37,6 +37,10 @@ Run the install generator:
37
37
  rails generate user_time_zones:install
38
38
  ```
39
39
 
40
+ Optional flags:
41
+ * -j append javascript require to your `application.js`
42
+ * --model specify a different user model
43
+
40
44
  Apply the migration the generator created:
41
45
  ```sh
42
46
  rails db:migrate
@@ -47,7 +51,7 @@ The install generator will:
47
51
  * Insert `include UserTimeZones::User` into your `User` model.
48
52
  * Insert `include UserTimeZones::Controller` into your `ApplicationController`.
49
53
 
50
- Include the javascript to calculate a new user's timezone in your `application.js`:
54
+ Then add the javascript require to your `application.js` (or use -j flag with install generator):
51
55
  ```javascript
52
56
  //= require user_time_zones
53
57
  ```
@@ -40,7 +40,7 @@ module UserTimeZones
40
40
 
41
41
  def inject_into_user_model
42
42
  if File.exist? model_path
43
- inject_into_class(model_path, model_class_name, " include UserTimeZones::User\n\n")
43
+ inject_into_class(model_path, model_class_name, " include UserTimeZones::User\n")
44
44
  end
45
45
  end
46
46
 
@@ -48,7 +48,7 @@ module UserTimeZones
48
48
  inject_into_class(
49
49
  'app/controllers/application_controller.rb',
50
50
  ApplicationController,
51
- " include UserTimeZones::Controller\n\n"
51
+ " include UserTimeZones::Controller\n"
52
52
  )
53
53
  end
54
54
 
@@ -1,3 +1,3 @@
1
1
  module UserTimeZones
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: user_time_zones
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Tomich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-27 00:00:00.000000000 Z
11
+ date: 2017-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  version: '0'
181
181
  requirements: []
182
182
  rubyforge_project:
183
- rubygems_version: 2.5.2
183
+ rubygems_version: 2.6.11
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: Provide time zone support for User models in Rails applications