taiwan_city_dists_helper 0.85 → 0.86

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c8107233849b52cc80a26f96a5e08db31645ae7b
4
+ data.tar.gz: 1382cc3c9ee5846f983085f64ee9c58ba3aa51fe
5
+ SHA512:
6
+ metadata.gz: 69f498afdfe81b12bf21f79d59ece764bd36e19d262e8cb711bec5d869230f7ef52a867290b9cff021ceddbd027b8226034ee19e4bb5bdcbc507b6b3883b11a1
7
+ data.tar.gz: 791a9340387ea12bc45b04dd515729fd61480a2dd3da8ea99248b9b5c4445aecd70802dc5f77985dad2cc8ef980b2f3106abe3fb3888e30765872f523070da3c
data/README.md CHANGED
@@ -18,9 +18,8 @@ And then execute:
18
18
 
19
19
  1. rails g taiwan_city_dists_helper:table
20
20
  2. rake db:migrate
21
- 3. rake taiwan_city_dists_helper:copy
22
- 4. rake taiwan_city_dists_helper:get_cities_and_dists
23
- 5. add //= require taiwan_city_dists_helper to your application.js
21
+ 3. rake taiwan_city_dists_helper:get_cities_and_dists
22
+ 4. add //= require taiwan_city_dists_helper to your application.js
24
23
 
25
24
  Make sure your object ( let's say Customer ) has relations with city and dist, so you have to
26
25
  add city\_id and dist\_id to your customers table, and define belongs_to in your customer.rb
data/app/models/city.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  class City < ActiveRecord::Base
3
- attr_accessible :name
3
+ attr_accessor :name
4
4
  has_many :dists
5
5
  end
data/app/models/dist.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  class Dist < ActiveRecord::Base
3
- attr_accessible :name, :city_id
3
+ attr_accessor :name, :city_id
4
4
  belongs_to :city
5
5
  end
@@ -1,5 +1,5 @@
1
1
  module TaiwanCityDistsHelper
2
2
  module Rails
3
- VERSION = "0.85"
3
+ VERSION = "0.86"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taiwan_city_dists_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.85'
5
- prerelease:
4
+ version: '0.86'
6
5
  platform: ruby
7
6
  authors:
8
7
  - unayung
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-05-01 00:00:00.000000000 Z
11
+ date: 2014-08-08 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: nokogiri
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  description: Generate Taiwan cities and dists model and provide dynamic select box
@@ -35,7 +32,7 @@ executables: []
35
32
  extensions: []
36
33
  extra_rdoc_files: []
37
34
  files:
38
- - .gitignore
35
+ - ".gitignore"
39
36
  - Gemfile
40
37
  - LICENSE.txt
41
38
  - README.md
@@ -53,27 +50,25 @@ files:
53
50
  - vendor/assets/javascripts/taiwan_city_dists_helper.js
54
51
  homepage: http://github.com/Unayung/taiwan_city_dists_helper
55
52
  licenses: []
53
+ metadata: {}
56
54
  post_install_message:
57
55
  rdoc_options: []
58
56
  require_paths:
59
57
  - lib
60
58
  required_ruby_version: !ruby/object:Gem::Requirement
61
- none: false
62
59
  requirements:
63
- - - ! '>='
60
+ - - ">="
64
61
  - !ruby/object:Gem::Version
65
62
  version: '0'
66
63
  required_rubygems_version: !ruby/object:Gem::Requirement
67
- none: false
68
64
  requirements:
69
- - - ! '>='
65
+ - - ">="
70
66
  - !ruby/object:Gem::Version
71
67
  version: '0'
72
68
  requirements: []
73
69
  rubyforge_project:
74
- rubygems_version: 1.8.25
70
+ rubygems_version: 2.2.2
75
71
  signing_key:
76
- specification_version: 3
72
+ specification_version: 4
77
73
  summary: This gem is a test
78
74
  test_files: []
79
- has_rdoc: