spree_states 0.0.1

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.
@@ -0,0 +1,22 @@
1
+ #Spree States
2
+
3
+ This is a simple project for [Spree Commerce](http://spreecommerce.com/)
4
+
5
+ Provides states seed data for use in Spree.
6
+
7
+
8
+ ###Installation
9
+
10
+ To install, simply add the Gem to your Gemfile
11
+
12
+
13
+ 1. Add the following to your Gemfile
14
+ <pre>
15
+ gem 'spree_i18n', :git => 'git://github.com/derfarg/spree_states.git'
16
+ </pre>
17
+ 2. Run `bundle install`
18
+ 3. Add in your seeds.rb under db directory this line
19
+ <pre>
20
+ SpreeStates::Engine.load_seed
21
+ </pre>
22
+ 4. run `rake db:seed`
@@ -0,0 +1,97 @@
1
+ ---
2
+ states_001:
3
+ name: Artigas
4
+ country_id: "215"
5
+ id: "999999001"
6
+ abbr: AR
7
+ states_002:
8
+ name: Canelones
9
+ country_id: "215"
10
+ id: "999999002"
11
+ abbr: CA
12
+ states_003:
13
+ name: Cerro Lago
14
+ country_id: "215"
15
+ id: "999999003"
16
+ abbr: CL
17
+ states_004:
18
+ name: Colonia
19
+ country_id: "215"
20
+ id: "999999004"
21
+ abbr: CO
22
+ states_005:
23
+ name: Durazno
24
+ country_id: "215"
25
+ id: "999999005"
26
+ abbr: DU
27
+ states_006:
28
+ name: Flores
29
+ country_id: "215"
30
+ id: "999999006"
31
+ abbr: FL
32
+ states_007:
33
+ name: Florida
34
+ country_id: "215"
35
+ id: "999999007"
36
+ abbr: FA
37
+ states_008:
38
+ name: Lavalleja
39
+ country_id: "215"
40
+ id: "999999008"
41
+ abbr: LA
42
+ states_009:
43
+ name: Maldonado
44
+ country_id: "215"
45
+ id: "999999009"
46
+ abbr: MA
47
+ states_010:
48
+ name: Paysandú
49
+ country_id: "215"
50
+ id: "999999010"
51
+ abbr: PA
52
+ states_011:
53
+ name: Río Negro
54
+ country_id: "215"
55
+ id: "999999011"
56
+ abbr: RN
57
+ states_012:
58
+ name: Rivera
59
+ country_id: "215"
60
+ id: "999999012"
61
+ abbr: RI
62
+ states_013:
63
+ name: Rocha
64
+ country_id: "215"
65
+ id: "999999013"
66
+ abbr: RO
67
+ states_014:
68
+ name: Salto
69
+ country_id: "215"
70
+ id: "999999014"
71
+ abbr: SA
72
+ states_015:
73
+ name: San José
74
+ country_id: "215"
75
+ id: "999999015"
76
+ abbr: SJ
77
+ states_016:
78
+ name: Soriano
79
+ country_id: "215"
80
+ id: "999999016"
81
+ abbr: SO
82
+ states_017:
83
+ name: Tacuarembó
84
+ country_id: "215"
85
+ id: "999999017"
86
+ abbr: TC
87
+ states_018:
88
+ name: Treinta y Tres
89
+ country_id: "215"
90
+ id: "999999018"
91
+ abbr: TT
92
+ states_019:
93
+ name: Montevideo
94
+ country_id: "215"
95
+ id: "999999019"
96
+ abbr: MV
97
+
@@ -0,0 +1,4 @@
1
+ require "spree_states/engine"
2
+
3
+ module SpreeStates
4
+ end
@@ -0,0 +1,5 @@
1
+ module SpreeStates
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace SpreeStates
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ module SpreeStates
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :spree_states do
3
+ # # Task goes here
4
+ # end
metadata ADDED
@@ -0,0 +1,83 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: spree_states
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Pablo Rodriguez - derfarg
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-10-15 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: spree
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '1.1'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '1.1'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rails
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: 3.0.0
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 3.0.0
46
+ description: Provides states seed data for use in Spree.
47
+ email: derfarg@gmail.com
48
+ executables: []
49
+ extensions: []
50
+ extra_rdoc_files: []
51
+ files:
52
+ - README.md
53
+ - db/default/spree/states.yml
54
+ - lib/spree_states/engine.rb
55
+ - lib/spree_states/version.rb
56
+ - lib/spree_states.rb
57
+ - lib/tasks/spree_states_tasks.rake
58
+ homepage: http://www.derfarg.com
59
+ licenses: []
60
+ post_install_message:
61
+ rdoc_options: []
62
+ require_paths:
63
+ - lib
64
+ required_ruby_version: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: 1.8.7
70
+ required_rubygems_version: !ruby/object:Gem::Requirement
71
+ none: false
72
+ requirements:
73
+ - - ! '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ requirements:
77
+ - none
78
+ rubyforge_project: spree_states
79
+ rubygems_version: 1.8.24
80
+ signing_key:
81
+ specification_version: 3
82
+ summary: Provides states seed data for use in Spree.
83
+ test_files: []