rails_dictionary 0.2.1 → 0.2.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
- SHA1:
3
- metadata.gz: 29704f4fcfc7b1a4a58b808a271d6121d790ed0c
4
- data.tar.gz: 9f58740b71f9b150134c87b44e3d112c62b83c5d
2
+ SHA256:
3
+ metadata.gz: 622dff0abbc1c9f416b4f86b7b962c2b7a394db0c801a836573fefbe537cf2f0
4
+ data.tar.gz: 24b8e3e1a53a4419a6a84555590b14ea7081d4d208b2033e63c2c11b0fbdf5dc
5
5
  SHA512:
6
- metadata.gz: 2c1fd60db8d10a661fe7ab9f0925e51c874685816af149a57e9a914778ee88ea55c6f9137cf0929d924c6921cdb932398116f70752f1a22ee385641e6722af45
7
- data.tar.gz: 4cf139cf52ad990394c9686365e639a1f81803f6503460cf3fac17f716a9ad903c7243ab1facd0a5b6fbe159f3190cffa636bb6c8b29144fc22a0876789cf207
6
+ metadata.gz: f7978afeaa816170a80105168a25990a1a7ebdb1f2aa88e4204097a1afc1e79c3aa591ffc78e73964a2893257b233946706e71dad804c23462cd9608af8c948f
7
+ data.tar.gz: 46a06cf437d586bf133ee8c9ff8c33d3787317678f7f2a384543f66a9297e70cc88e55e887d97a04fee99ac4599ce90bebf50326079024e909e90e7ed5d080f7
data/README.rdoc CHANGED
@@ -1,5 +1,5 @@
1
1
  = Plan
2
- I plan wrote a new gem to replace it. The new gem will use rails STI. so we dont need maintenance dict_types table. It should be a better solution.
2
+ Working on sti branch will target to 0.3 version which will not compatible with 0.1 and 0.2
3
3
 
4
4
  = Intro
5
5
  There are always some static data(not static page) in application.For example product type or student diploma type.
@@ -8,6 +8,8 @@ This gem can map these static data to a Dictionary#method like Dictionary#studen
8
8
 
9
9
  = Usage
10
10
  == Installation
11
+ Branch sti is used to target version 0.3 which will totall rewrite. The main change is use STI to replace dict_types.
12
+
11
13
  Version 0.2 support Rails4
12
14
 
13
15
  Version 0.1 support Rails3.1
@@ -18,7 +18,7 @@ module RailsDictionary
18
18
  def revert(arg)
19
19
  if arg.is_a?(String)
20
20
  DictType.where(name: arg).first.try(:id)
21
- elsif arg.is_a?(Fixnum)
21
+ elsif arg.is_a?(Integer)
22
22
  DictType.where(id: arg).first.try(:name)
23
23
  end
24
24
  end
@@ -1,3 +1,3 @@
1
1
  module RailsDictionary
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_dictionary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raykin Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-11 00:00:00.000000000 Z
11
+ date: 2018-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -68,9 +68,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  version: '0'
69
69
  requirements: []
70
70
  rubyforge_project: rails_dictionary
71
- rubygems_version: 2.2.2
71
+ rubygems_version: 2.7.7
72
72
  signing_key:
73
73
  specification_version: 4
74
74
  summary: dictionary data for web application
75
- test_files: []
76
- has_rdoc:
75
+ test_files:
76
+ - spec/fake_app.rb
77
+ - spec/rails_dictionary_spec.rb
78
+ - spec/spec_helper.rb