piggybak 0.7.6 → 0.7.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d04c0c0da3e2fb5df67c8e0802d37839fc0b1df
4
- data.tar.gz: a760a4ce5e57084ec8a6fc3c931d7a0ca9cb774f
3
+ metadata.gz: 5b4992bf488dd43faa7f43e9c4b0f274f91f36f9
4
+ data.tar.gz: 29f6b755ad4f8603a65cab1994e2da798271f8da
5
5
  SHA512:
6
- metadata.gz: 065d52339792d93e27b7af4df8f3d8f3c3aab3b3e7d08b7dc0a1dae00b7483fc2dc874b6ecc7818ea7227e9ffc874862452cc6b2456144af07cfb1837caf4098
7
- data.tar.gz: 78605631ca76c7310d301721fb841fbbcfbe48fb7846b3d19ec36ce0a3b5ff7159460de4aaaa7c00f8292216e691d9252680f8fe9ec5d0ebba6d0c9763d2fcb1
6
+ metadata.gz: bf61f6866d33272c2cc00cb6653432b30713244fda7f79fb31dda8d04b444cf6f63da6bd601d4a4b6c5b47bc31547f0ef76833e03d1f0fd92e20f2a84926e452
7
+ data.tar.gz: 014f3211239315a893999d7f1bb33bb151b747256bdf3c568744db98f6c2627e7dbb613c329160bd62cecdf84317ed550bc99e872a3d75bd1257df248bd75199
data/README.md CHANGED
@@ -42,14 +42,12 @@ Installation
42
42
 
43
43
  * Next, run the piggybak install command:
44
44
 
45
- piggybak install
45
+ bundle exec piggybak install
46
46
 
47
47
  * Add piggybak/piggybak-application to your main application.js:
48
48
 
49
49
  //= require piggybak/piggybak-application
50
50
 
51
- (NOTE: If you run into an error saying that piggybak gem is missing, use bundle exec piggybak install)
52
-
53
51
  * Follow the instructions [here][documentation] to read more about the integration points and product configuration in Piggybak.
54
52
 
55
53
  [documentation]: http://www.piggybak.org/documentation.html#integration
@@ -10,15 +10,15 @@ class PopulateCountriesAndStates < ActiveRecord::Migration
10
10
  end
11
11
 
12
12
  ISO3166::Country.all.each do |country_array|
13
- name = country_array[0]
14
- abbr = country_array[1]
13
+ name = country_array.name
14
+ abbr = country_array.alpha2
15
15
 
16
16
  country = Piggybak::Country.create :name => name, :abbr => abbr
17
17
 
18
18
  iso3166_country = ISO3166::Country.new(abbr)
19
19
  iso3166_country.states.each do |key, value|
20
- name = key
21
- abbr = value["name"]
20
+ name = value['name']
21
+ abbr = key
22
22
  Piggybak::State.create! :name => name, :abbr => abbr, :country => country
23
23
  end
24
24
  end
@@ -7,6 +7,8 @@ require 'active_merchant'
7
7
  require 'formatted_changes'
8
8
  require 'mask_submissions'
9
9
  require 'rack-ssl-enforcer'
10
+ require 'rails_admin'
11
+ require 'devise'
10
12
 
11
13
  module Piggybak
12
14
  def self.config(entity = nil, &block)
@@ -9,9 +9,6 @@ module Piggybak
9
9
  if already_installed?
10
10
  update
11
11
  else
12
- inject_devise
13
- inject_rails_admin
14
- run('bundle install')
15
12
  run('rake piggybak:install:migrations')
16
13
  run('rake db:migrate')
17
14
  run('rails generate devise:install')
@@ -33,19 +30,6 @@ module Piggybak
33
30
  say_upgraded
34
31
  end
35
32
 
36
- desc "inject_devise", "add devise"
37
- def inject_devise
38
- puts 'add reference to devise in GEMFILE'
39
- insert_into_file "Gemfile", "gem 'devise'\n", :after => "source 'https://rubygems.org'\n"
40
- end
41
-
42
-
43
- desc "inject_rails_admin", "add rails_admin"
44
- def inject_rails_admin
45
- puts 'add reference to rails_admin in GEMFILE'
46
- insert_into_file "Gemfile", "gem 'rails_admin'\n", :after => "gem 'devise'\n"
47
- end
48
-
49
33
  desc "mount_piggybak_route", "mount piggybak route"
50
34
  def mount_piggybak_route
51
35
  insert_into_file "config/routes.rb", "\n mount Piggybak::Engine => '/checkout', :as => 'piggybak'\n", :after => "Application.routes.draw do\n"
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Piggybak
2
- VERSION = "0.7.6"
3
+ VERSION = '0.7.7'.freeze
3
4
  end
metadata CHANGED
@@ -1,19 +1,34 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: piggybak
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.6
4
+ version: 0.7.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steph Skardal
8
8
  - Tim Case
9
9
  - Brian Buchalter
10
+ - Patrick Lewis
10
11
  autorequire:
11
12
  bindir: bin
12
13
  cert_chain: []
13
- date: 2015-03-30 00:00:00.000000000 Z
14
+ date: 2016-01-25 00:00:00.000000000 Z
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
17
  name: countries
18
+ requirement: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - "~>"
21
+ - !ruby/object:Gem::Version
22
+ version: 1.2.2
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: 1.2.2
30
+ - !ruby/object:Gem::Dependency
31
+ name: activemerchant
17
32
  requirement: !ruby/object:Gem::Requirement
18
33
  requirements:
19
34
  - - ">="
@@ -27,7 +42,7 @@ dependencies:
27
42
  - !ruby/object:Gem::Version
28
43
  version: '0'
29
44
  - !ruby/object:Gem::Dependency
30
- name: activemerchant
45
+ name: rack-ssl-enforcer
31
46
  requirement: !ruby/object:Gem::Requirement
32
47
  requirements:
33
48
  - - ">="
@@ -41,7 +56,21 @@ dependencies:
41
56
  - !ruby/object:Gem::Version
42
57
  version: '0'
43
58
  - !ruby/object:Gem::Dependency
44
- name: rack-ssl-enforcer
59
+ name: devise
60
+ requirement: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: '0'
65
+ type: :runtime
66
+ prerelease: false
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ - !ruby/object:Gem::Dependency
73
+ name: rails_admin
45
74
  requirement: !ruby/object:Gem::Requirement
46
75
  requirements:
47
76
  - - ">="
@@ -63,7 +92,6 @@ extensions: []
63
92
  extra_rdoc_files: []
64
93
  files:
65
94
  - Gemfile
66
- - Gemfile.lock
67
95
  - LICENSE
68
96
  - README.md
69
97
  - Rakefile
@@ -171,7 +199,8 @@ files:
171
199
  - lib/piggybak/engine.rb
172
200
  - lib/piggybak/version.rb
173
201
  homepage: http://www.piggybak.org/
174
- licenses: []
202
+ licenses:
203
+ - GPL-2.0
175
204
  metadata: {}
176
205
  post_install_message:
177
206
  rdoc_options: []
@@ -189,8 +218,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
218
  version: '0'
190
219
  requirements: []
191
220
  rubyforge_project:
192
- rubygems_version: 2.2.2
221
+ rubygems_version: 2.5.1
193
222
  signing_key:
194
223
  specification_version: 4
195
224
  summary: Mountable Ruby on Rails Ecommerce.
196
225
  test_files: []
226
+ has_rdoc:
@@ -1,44 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- piggybak (0.7.6)
5
- activemerchant
6
- countries
7
- rack-ssl-enforcer
8
-
9
- GEM
10
- remote: http://rubygems.org/
11
- specs:
12
- activemerchant (1.47.0)
13
- activesupport (>= 3.2.14, < 5.0.0)
14
- builder (>= 2.1.2, < 4.0.0)
15
- i18n (>= 0.6.9)
16
- nokogiri (~> 1.4)
17
- activesupport (4.2.1)
18
- i18n (~> 0.7)
19
- json (~> 1.7, >= 1.7.7)
20
- minitest (~> 5.1)
21
- thread_safe (~> 0.3, >= 0.3.4)
22
- tzinfo (~> 1.1)
23
- builder (3.2.2)
24
- countries (0.11.3)
25
- currencies (~> 0.4.2)
26
- i18n_data (~> 0.6.0)
27
- currencies (0.4.2)
28
- i18n (0.7.0)
29
- i18n_data (0.6.3)
30
- json (1.8.2)
31
- mini_portile (0.6.2)
32
- minitest (5.5.1)
33
- nokogiri (1.6.6.2)
34
- mini_portile (~> 0.6.0)
35
- rack-ssl-enforcer (0.2.8)
36
- thread_safe (0.3.5)
37
- tzinfo (1.2.2)
38
- thread_safe (~> 0.1)
39
-
40
- PLATFORMS
41
- ruby
42
-
43
- DEPENDENCIES
44
- piggybak!