spree_affiliate_links 1.1.4 → 1.3.1

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: d416a23f9ecdd33d63ecc7a8eb03b355cb0b6de3
4
+ data.tar.gz: 34d1006bde297936d749fa7b42144141251116de
5
+ SHA512:
6
+ metadata.gz: eb3c71515ba39245793989aaf4551bde3b74509f285f1b05191589eeb64d8a755d5b7785f6e4c536c180faca6ff47fddf255bfc77817cad774c875ae0e994c76
7
+ data.tar.gz: 57c0ca98c4e843b040bc608ca9cda98f073cd9db17ad599599e31c4098003a583299f73254e06a07bbcd7bfe4cb72e2f38ec81e62ecc290f8f626b57ef06d427
data/Gemfile.lock CHANGED
@@ -1,61 +1,61 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- spree_affiliate_links (1.1.3)
5
- spree_core (~> 1.1.3)
4
+ spree_affiliate_links (1.3.0)
5
+ spree_core (~> 1.3.3)
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
- actionmailer (3.2.8)
11
- actionpack (= 3.2.8)
12
- mail (~> 2.4.4)
13
- actionpack (3.2.8)
14
- activemodel (= 3.2.8)
15
- activesupport (= 3.2.8)
10
+ actionmailer (3.2.13)
11
+ actionpack (= 3.2.13)
12
+ mail (~> 2.5.3)
13
+ actionpack (3.2.13)
14
+ activemodel (= 3.2.13)
15
+ activesupport (= 3.2.13)
16
16
  builder (~> 3.0.0)
17
17
  erubis (~> 2.7.0)
18
18
  journey (~> 1.0.4)
19
- rack (~> 1.4.0)
19
+ rack (~> 1.4.5)
20
20
  rack-cache (~> 1.2)
21
21
  rack-test (~> 0.6.1)
22
- sprockets (~> 2.1.3)
23
- active_utils (1.0.4)
22
+ sprockets (~> 2.2.1)
23
+ active_utils (1.0.5)
24
24
  activesupport (>= 2.3.11)
25
25
  i18n
26
- activemerchant (1.20.4)
26
+ activemerchant (1.34.1)
27
27
  active_utils (>= 1.0.2)
28
- activesupport (>= 2.3.11)
29
- braintree (>= 2.0.0)
28
+ activesupport (>= 2.3.14)
30
29
  builder (>= 2.0.0)
31
30
  i18n
32
31
  json (>= 1.5.1)
33
- money (<= 3.7.1)
34
- activemodel (3.2.8)
35
- activesupport (= 3.2.8)
32
+ money
33
+ nokogiri (< 1.6.0)
34
+ activemodel (3.2.13)
35
+ activesupport (= 3.2.13)
36
36
  builder (~> 3.0.0)
37
- activerecord (3.2.8)
38
- activemodel (= 3.2.8)
39
- activesupport (= 3.2.8)
37
+ activerecord (3.2.13)
38
+ activemodel (= 3.2.13)
39
+ activesupport (= 3.2.13)
40
40
  arel (~> 3.0.2)
41
41
  tzinfo (~> 0.3.29)
42
- activeresource (3.2.8)
43
- activemodel (= 3.2.8)
44
- activesupport (= 3.2.8)
45
- activesupport (3.2.8)
46
- i18n (~> 0.6)
42
+ activeresource (3.2.13)
43
+ activemodel (= 3.2.13)
44
+ activesupport (= 3.2.13)
45
+ activesupport (3.2.13)
46
+ i18n (= 0.6.1)
47
47
  multi_json (~> 1.0)
48
48
  acts_as_list (0.1.4)
49
- addressable (2.3.2)
50
49
  arel (3.0.2)
50
+ awesome_nested_set (2.1.5)
51
+ activerecord (>= 3.0.0)
51
52
  aws-sdk (1.3.9)
52
53
  httparty (~> 0.7)
53
54
  json (~> 1.4)
54
55
  nokogiri (>= 1.4.4)
55
56
  uuidtools (~> 2.1)
56
- braintree (2.16.0)
57
- builder (>= 2.0.0)
58
- builder (3.0.2)
57
+ builder (3.0.4)
58
+ cancan (1.6.8)
59
59
  capybara (1.0.1)
60
60
  mime-types (>= 1.16)
61
61
  nokogiri (>= 1.3.3)
@@ -63,56 +63,54 @@ GEM
63
63
  rack-test (>= 0.5.4)
64
64
  selenium-webdriver (~> 2.0)
65
65
  xpath (~> 0.1.4)
66
- childprocess (0.3.5)
67
- ffi (~> 1.0, >= 1.0.6)
68
- cocaine (0.3.0)
66
+ childprocess (0.3.9)
67
+ ffi (~> 1.0, >= 1.0.11)
68
+ climate_control (0.0.3)
69
+ activesupport (>= 3.0)
70
+ cocaine (0.5.1)
71
+ climate_control (>= 0.0.3, < 1.0)
69
72
  columnize (0.3.6)
70
- debugger (1.2.0)
73
+ debugger (1.6.0)
71
74
  columnize (>= 0.3.1)
72
- debugger-linecache (~> 1.1.1)
73
- debugger-ruby_core_source (~> 1.1.3)
74
- debugger-linecache (1.1.2)
75
- debugger-ruby_core_source (>= 1.1.1)
76
- debugger-ruby_core_source (1.1.3)
75
+ debugger-linecache (~> 1.2.0)
76
+ debugger-ruby_core_source (~> 1.2.1)
77
+ debugger-linecache (1.2.0)
78
+ debugger-ruby_core_source (1.2.3)
77
79
  deface (0.9.1)
78
80
  nokogiri (~> 1.5.0)
79
81
  rails (~> 3.1)
80
- diff-lcs (1.1.3)
82
+ diff-lcs (1.2.4)
81
83
  erubis (2.7.0)
82
84
  factory_girl (2.6.4)
83
85
  activesupport (>= 2.3.9)
84
- ffaker (1.12.1)
85
- ffi (1.1.5)
86
- highline (1.6.11)
87
- hike (1.2.1)
88
- httparty (0.8.3)
86
+ ffaker (1.15.0)
87
+ ffi (1.9.0)
88
+ highline (1.6.18)
89
+ hike (1.2.3)
90
+ httparty (0.11.0)
89
91
  multi_json (~> 1.0)
90
- multi_xml
92
+ multi_xml (>= 0.5.2)
91
93
  i18n (0.6.1)
92
94
  journey (1.0.4)
93
- jquery-rails (2.0.3)
94
- railties (>= 3.1.0, < 5.0)
95
- thor (~> 0.14)
96
- json (1.7.5)
97
- kaminari (0.14.0)
95
+ jquery-rails (2.2.2)
96
+ railties (>= 3.0, < 5.0)
97
+ thor (>= 0.14, < 2.0)
98
+ json (1.8.0)
99
+ kaminari (0.13.0)
98
100
  actionpack (>= 3.0.0)
99
101
  activesupport (>= 3.0.0)
100
- libwebsocket (0.1.5)
101
- addressable
102
- mail (2.4.4)
103
- i18n (>= 0.4.0)
102
+ railties (>= 3.0.0)
103
+ mail (2.5.4)
104
104
  mime-types (~> 1.16)
105
105
  treetop (~> 1.4.8)
106
- mime-types (1.19)
107
- money (3.7.1)
106
+ mime-types (1.23)
107
+ money (5.0.0)
108
108
  i18n (~> 0.4)
109
- multi_json (1.3.6)
110
- multi_xml (0.5.1)
111
- nested_set (1.7.0)
112
- activerecord (>= 3.0.0)
113
- railties (>= 3.0.0)
114
- nokogiri (1.5.5)
115
- paperclip (2.7.0)
109
+ json
110
+ multi_json (1.7.7)
111
+ multi_xml (0.5.4)
112
+ nokogiri (1.5.10)
113
+ paperclip (2.8.0)
116
114
  activerecord (>= 2.3.0)
117
115
  activesupport (>= 2.3.2)
118
116
  cocaine (>= 0.0.2)
@@ -120,83 +118,95 @@ GEM
120
118
  polyamorous (0.5.0)
121
119
  activerecord (~> 3.0)
122
120
  polyglot (0.3.3)
123
- rack (1.4.1)
121
+ rabl (0.7.2)
122
+ activesupport (>= 2.3.14)
123
+ multi_json (~> 1.0)
124
+ rack (1.4.5)
124
125
  rack-cache (1.2)
125
126
  rack (>= 0.4)
126
- rack-ssl (1.3.2)
127
+ rack-ssl (1.3.3)
127
128
  rack
128
- rack-test (0.6.1)
129
+ rack-test (0.6.2)
129
130
  rack (>= 1.0)
130
- rails (3.2.8)
131
- actionmailer (= 3.2.8)
132
- actionpack (= 3.2.8)
133
- activerecord (= 3.2.8)
134
- activeresource (= 3.2.8)
135
- activesupport (= 3.2.8)
131
+ rails (3.2.13)
132
+ actionmailer (= 3.2.13)
133
+ actionpack (= 3.2.13)
134
+ activerecord (= 3.2.13)
135
+ activeresource (= 3.2.13)
136
+ activesupport (= 3.2.13)
136
137
  bundler (~> 1.0)
137
- railties (= 3.2.8)
138
- railties (3.2.8)
139
- actionpack (= 3.2.8)
140
- activesupport (= 3.2.8)
138
+ railties (= 3.2.13)
139
+ railties (3.2.13)
140
+ actionpack (= 3.2.13)
141
+ activesupport (= 3.2.13)
141
142
  rack-ssl (~> 1.3.2)
142
143
  rake (>= 0.8.7)
143
144
  rdoc (~> 3.4)
144
145
  thor (>= 0.14.6, < 2.0)
145
- rake (0.9.2.2)
146
- ransack (0.6.0)
146
+ rake (10.1.0)
147
+ ransack (0.7.2)
147
148
  actionpack (~> 3.0)
148
149
  activerecord (~> 3.0)
149
150
  polyamorous (~> 0.5.0)
150
- rdoc (3.12)
151
+ rdoc (3.12.2)
151
152
  json (~> 1.4)
152
- rspec (2.11.0)
153
- rspec-core (~> 2.11.0)
154
- rspec-expectations (~> 2.11.0)
155
- rspec-mocks (~> 2.11.0)
156
- rspec-core (2.11.1)
157
- rspec-expectations (2.11.3)
158
- diff-lcs (~> 1.1.3)
159
- rspec-mocks (2.11.2)
160
- rspec-rails (2.11.0)
153
+ rspec-core (2.13.1)
154
+ rspec-expectations (2.13.0)
155
+ diff-lcs (>= 1.1.3, < 2.0)
156
+ rspec-mocks (2.13.1)
157
+ rspec-rails (2.13.2)
161
158
  actionpack (>= 3.0)
162
159
  activesupport (>= 3.0)
163
160
  railties (>= 3.0)
164
- rspec (~> 2.11.0)
161
+ rspec-core (~> 2.13.0)
162
+ rspec-expectations (~> 2.13.0)
163
+ rspec-mocks (~> 2.13.0)
165
164
  rubyzip (0.9.9)
166
- selenium-webdriver (2.25.0)
165
+ select2-rails (3.2.1)
166
+ thor (~> 0.14)
167
+ selenium-webdriver (2.33.0)
167
168
  childprocess (>= 0.2.5)
168
- libwebsocket (~> 0.1.3)
169
169
  multi_json (~> 1.0)
170
170
  rubyzip
171
- spree_core (1.1.3)
172
- activemerchant (= 1.20.4)
171
+ websocket (~> 1.0.4)
172
+ spree_core (1.3.3)
173
+ activemerchant (~> 1.31)
173
174
  acts_as_list (= 0.1.4)
175
+ awesome_nested_set (= 2.1.5)
174
176
  aws-sdk (~> 1.3.4)
177
+ cancan (= 1.6.8)
175
178
  deface (>= 0.9.0)
176
- ffaker (~> 1.12.0)
177
- highline (= 1.6.11)
178
- jquery-rails (~> 2.0.0)
179
- kaminari (>= 0.13.0)
180
- nested_set (= 1.7.0)
181
- paperclip (~> 2.7)
182
- rails (~> 3.2.6)
183
- ransack (~> 0.6.0)
179
+ ffaker (~> 1.15.0)
180
+ highline (= 1.6.18)
181
+ jquery-rails (~> 2.2.0)
182
+ json (>= 1.5.5)
183
+ kaminari (= 0.13.0)
184
+ money (= 5.0.0)
185
+ paperclip (~> 2.8)
186
+ rabl (= 0.7.2)
187
+ rails (~> 3.2.13)
188
+ ransack (= 0.7.2)
189
+ select2-rails (= 3.2.1)
184
190
  state_machine (= 1.1.2)
185
191
  stringex (~> 1.3.2)
186
- sprockets (2.1.3)
192
+ truncate_html (~> 0.5.5)
193
+ sprockets (2.2.2)
187
194
  hike (~> 1.2)
195
+ multi_json (~> 1.0)
188
196
  rack (~> 1.0)
189
197
  tilt (~> 1.1, != 1.3.0)
190
- sqlite3 (1.3.6)
198
+ sqlite3 (1.3.7)
191
199
  state_machine (1.1.2)
192
200
  stringex (1.3.3)
193
- thor (0.16.0)
194
- tilt (1.3.3)
195
- treetop (1.4.10)
201
+ thor (0.18.1)
202
+ tilt (1.4.1)
203
+ treetop (1.4.14)
196
204
  polyglot
197
205
  polyglot (>= 0.3.1)
198
- tzinfo (0.3.33)
199
- uuidtools (2.1.3)
206
+ truncate_html (0.5.5)
207
+ tzinfo (0.3.37)
208
+ uuidtools (2.1.4)
209
+ websocket (1.0.7)
200
210
  xpath (0.1.4)
201
211
  nokogiri (~> 1.3)
202
212
 
data/README.md CHANGED
@@ -4,9 +4,27 @@ SpreeAffiliateLinks
4
4
  I needed a way to give my Spree client a way to add footer affiliate
5
5
  images with links, and so I created an extension for that. Simple.
6
6
 
7
+ *This doesn't have to be tied to affiliate links. It can be used as a
8
+ flexible image + url storage system. For example, I used it in a project
9
+ needing a carousel with links to products that were configurable by the client.*
10
+
7
11
  You'll find an "Affiliate Links" section in the admin tabs. An example
8
12
  on how to display the links in the layout is below.
9
13
 
14
+ Installation
15
+ ============
16
+
17
+ rake spree_affiliate_links:install:migrations
18
+ rake db:migrate
19
+
20
+ What It Does
21
+ ============
22
+
23
+ Stores a `name` associated with a `link`, `image`, and
24
+ `sort`. That's it! The rest is up to you.
25
+
26
+ You'll find a new tab in /admin where you can maintain these.
27
+
10
28
  Example
11
29
  =======
12
30
 
data/Versionfile CHANGED
@@ -9,3 +9,4 @@
9
9
  # '0.70.x' => { :branch => '0-70-stable' }
10
10
  # '0.40.x' => { :tag => 'v1.0.0', :version => '1.0.0' }
11
11
 
12
+ '1.3.x' => { :branch => '1-3-stable' }
@@ -3,6 +3,10 @@ class Spree::Admin::AffiliateLinksController < Spree::Admin::ResourceController
3
3
  @affiliate_link = @object
4
4
  end
5
5
 
6
+ def index
7
+ @affiliate_links = @affiliate_links.order('sort asc')
8
+ end
9
+
6
10
  def edit
7
11
  @affiliate_link = @object
8
12
  end
@@ -1,8 +1,14 @@
1
1
  module Spree
2
2
  class AffiliateLink < ActiveRecord::Base
3
- attr_accessible :destination_url, :name, :image_attributes
3
+ attr_accessible :destination_url, :name, :image_attributes, :sort
4
4
 
5
5
  has_one :image, :class_name => 'Spree::Image', :as => :viewable, :dependent => :destroy, :validate => true
6
6
  accepts_nested_attributes_for :image
7
+
8
+ before_create :default_sort
9
+
10
+ def default_sort
11
+ self.sort = 0 if self.sort.nil?
12
+ end
7
13
  end
8
14
  end
@@ -11,6 +11,12 @@
11
11
  <%= f.error_message_on :destination_url %>
12
12
  <% end %>
13
13
 
14
+ <%= f.field_container :sort do %>
15
+ <%= f.label :sort %><br />
16
+ <%= f.number_field :sort, :class => 'title' %>
17
+ <%= f.error_message_on :sort %>
18
+ <% end %>
19
+
14
20
  <%= f.fields_for :image_attributes, @affiliate_link.image || @affiliate_link.build_image do |image| %>
15
21
  <%= f.field_container :image do %>
16
22
  <%= image.label :attachment, 'Image' %><span class="required">*</span><br />
@@ -1,19 +1,26 @@
1
- <div class='toolbar'>
2
- <ul class='actions'>
3
- <li id="new_product_link">
4
- <%= button_link_to t("affiliate_link.new_link"), new_object_url, {:icon => 'add'} %>
5
- </li>
6
- </ul>
7
- <br class='clear' />
8
- </div>
1
+ <% content_for :page_actions do %>
2
+ <li>
3
+ <%= button_link_to t("affiliate_link.new_link"), new_object_url, :icon => 'icon-plus' %>
4
+ </li>
5
+ <% end %>
9
6
 
10
- <h1><%=t("affiliate_link.index_page") %></h1>
7
+ <% content_for :page_title do %>
8
+ <%= t("affiliate_link.index_page") %>
9
+ <% end %>
11
10
 
12
11
  <table class="index">
12
+ <colgroup>
13
+ <col style="width: 40%" />
14
+ <col style="width: 30%" />
15
+ <col style="width: 10%" />
16
+ <col style="width: 10%" />
17
+ <col style="width: 10%" />
18
+ </colgroup>
13
19
  <tr>
14
20
  <th><%= t("affiliate_link.name") %></th>
15
21
  <th><%= t("affiliate_link.destination_url") %></th>
16
22
  <th><%= t("affiliate_link.image") %></th>
23
+ <th><%= t("affiliate_link.sort") %></th>
17
24
  <th><%= t("action") %></th>
18
25
  </tr>
19
26
  <tbody>
@@ -29,7 +36,10 @@
29
36
  <%= image_tag affiliate_link.image.attachment.url(:small) %>
30
37
  </td>
31
38
  <td>
32
- <%= link_to_edit affiliate_link %> &nbsp;
39
+ <%= affiliate_link.sort %>
40
+ </td>
41
+ <td>
42
+ <%= link_to_edit affiliate_link %><br />
33
43
  <%= link_to_delete affiliate_link %>
34
44
  </td>
35
45
  </tr>
@@ -0,0 +1,5 @@
1
+ class AddSortToSpreeAffiliateLinks < ActiveRecord::Migration
2
+ def change
3
+ add_column :spree_affiliate_links, :sort, :integer
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ module SpreeAffiliateLinks
2
+ VERSION = '1.3.1'
3
+ end
Binary file
@@ -1,8 +1,10 @@
1
1
  # encoding: UTF-8
2
+ require 'spree_affiliate_links/version'
3
+
2
4
  Gem::Specification.new do |s|
3
5
  s.platform = Gem::Platform::RUBY
4
6
  s.name = 'spree_affiliate_links'
5
- s.version = '1.1.4'
7
+ s.version = SpreeAffiliateLinks::VERSION
6
8
  s.summary = 'Affiliate links with images for Spree using Paperclip.'
7
9
  # s.description = 'TODO: Add (optional) gem description here'
8
10
  s.required_ruby_version = '>= 1.8.7'
@@ -11,12 +13,11 @@ Gem::Specification.new do |s|
11
13
  s.email = 'sfsekaran@gmail.com'
12
14
  s.homepage = 'http://sfsekaran.github.com/'
13
15
 
14
- s.files = `git ls-files`.split("\n")
15
- # s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
- s.require_path = 'lib'
16
+ s.files = Dir["**/*"]
17
+ s.require_paths << 'lib'
17
18
  s.requirements << 'none'
18
19
 
19
- s.add_dependency 'spree_core', '~> 1.1.3'
20
+ s.add_dependency 'spree_core', '~> 1.3.3'
20
21
 
21
22
  s.add_development_dependency 'capybara', '1.0.1'
22
23
  s.add_development_dependency 'factory_girl', '~> 2.6.4'
metadata CHANGED
@@ -1,126 +1,84 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: spree_affiliate_links
3
- version: !ruby/object:Gem::Version
4
- version: 1.1.4
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.3.1
6
5
  platform: ruby
7
- authors:
6
+ authors:
8
7
  - Sathya Sekaran
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-09-13 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
11
+
12
+ date: 2013-06-30 00:00:00 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
15
  name: spree_core
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: 1.1.3
22
- type: :runtime
23
16
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
17
+ requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirements:
27
19
  - - ~>
28
- - !ruby/object:Gem::Version
29
- version: 1.1.3
30
- - !ruby/object:Gem::Dependency
20
+ - !ruby/object:Gem::Version
21
+ version: 1.3.3
22
+ type: :runtime
23
+ version_requirements: *id001
24
+ - !ruby/object:Gem::Dependency
31
25
  name: capybara
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - '='
36
- - !ruby/object:Gem::Version
37
- version: 1.0.1
38
- type: :development
39
26
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - '='
44
- - !ruby/object:Gem::Version
27
+ requirement: &id002 !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - "="
30
+ - !ruby/object:Gem::Version
45
31
  version: 1.0.1
46
- - !ruby/object:Gem::Dependency
47
- name: factory_girl
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ~>
52
- - !ruby/object:Gem::Version
53
- version: 2.6.4
54
32
  type: :development
33
+ version_requirements: *id002
34
+ - !ruby/object:Gem::Dependency
35
+ name: factory_girl
55
36
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
37
+ requirement: &id003 !ruby/object:Gem::Requirement
38
+ requirements:
59
39
  - - ~>
60
- - !ruby/object:Gem::Version
40
+ - !ruby/object:Gem::Version
61
41
  version: 2.6.4
62
- - !ruby/object:Gem::Dependency
63
- name: ffaker
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
42
  type: :development
43
+ version_requirements: *id003
44
+ - !ruby/object:Gem::Dependency
45
+ name: ffaker
71
46
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
- - !ruby/object:Gem::Dependency
79
- name: rspec-rails
80
- requirement: !ruby/object:Gem::Requirement
81
- none: false
82
- requirements:
83
- - - ~>
84
- - !ruby/object:Gem::Version
85
- version: '2.9'
47
+ requirement: &id004 !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - &id006
50
+ - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: "0"
86
53
  type: :development
54
+ version_requirements: *id004
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec-rails
87
57
  prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
58
+ requirement: &id005 !ruby/object:Gem::Requirement
59
+ requirements:
91
60
  - - ~>
92
- - !ruby/object:Gem::Version
93
- version: '2.9'
94
- - !ruby/object:Gem::Dependency
95
- name: sqlite3
96
- requirement: !ruby/object:Gem::Requirement
97
- none: false
98
- requirements:
99
- - - ! '>='
100
- - !ruby/object:Gem::Version
101
- version: '0'
61
+ - !ruby/object:Gem::Version
62
+ version: "2.9"
102
63
  type: :development
64
+ version_requirements: *id005
65
+ - !ruby/object:Gem::Dependency
66
+ name: sqlite3
103
67
  prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ! '>='
108
- - !ruby/object:Gem::Version
109
- version: '0'
68
+ requirement: &id007 !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - *id006
71
+ type: :development
72
+ version_requirements: *id007
110
73
  description:
111
74
  email: sfsekaran@gmail.com
112
75
  executables: []
76
+
113
77
  extensions: []
78
+
114
79
  extra_rdoc_files: []
115
- files:
116
- - .gitignore
117
- - .rspec
118
- - Gemfile
119
- - Gemfile.lock
120
- - LICENSE
121
- - README.md
122
- - Rakefile
123
- - Versionfile
80
+
81
+ files:
124
82
  - app/assets/javascripts/admin/spree_affiliate_links.js
125
83
  - app/assets/javascripts/affiliate_links.js
126
84
  - app/assets/javascripts/store/spree_affiliate_links.js
@@ -138,38 +96,49 @@ files:
138
96
  - config/locales/en.yml
139
97
  - config/routes.rb
140
98
  - db/migrate/20120907095802_create_affiliate_links.rb
99
+ - db/migrate/20130630101655_add_sort_to_spree_affiliate_links.rb
100
+ - Gemfile
101
+ - Gemfile.lock
141
102
  - lib/generators/spree_affiliate_links/install/install_generator.rb
142
- - lib/spree_affiliate_links.rb
143
103
  - lib/spree_affiliate_links/engine.rb
104
+ - lib/spree_affiliate_links/version.rb
105
+ - lib/spree_affiliate_links.rb
106
+ - LICENSE
107
+ - Rakefile
108
+ - README.md
144
109
  - script/rails
145
110
  - spec/controllers/affiliate_links_controller_spec.rb
146
111
  - spec/helpers/affiliate_links_helper_spec.rb
147
112
  - spec/models/affiliate_link_spec.rb
148
113
  - spec/spec_helper.rb
114
+ - spree_affiliate_links-1.3.0.gem
149
115
  - spree_affiliate_links.gemspec
116
+ - Versionfile
150
117
  homepage: http://sfsekaran.github.com/
151
118
  licenses: []
119
+
120
+ metadata: {}
121
+
152
122
  post_install_message:
153
123
  rdoc_options: []
154
- require_paths:
124
+
125
+ require_paths:
126
+ - lib
155
127
  - lib
156
- required_ruby_version: !ruby/object:Gem::Requirement
157
- none: false
158
- requirements:
159
- - - ! '>='
160
- - !ruby/object:Gem::Version
128
+ required_ruby_version: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
161
132
  version: 1.8.7
162
- required_rubygems_version: !ruby/object:Gem::Requirement
163
- none: false
164
- requirements:
165
- - - ! '>='
166
- - !ruby/object:Gem::Version
167
- version: '0'
168
- requirements:
133
+ required_rubygems_version: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - *id006
136
+ requirements:
169
137
  - none
170
138
  rubyforge_project:
171
- rubygems_version: 1.8.24
139
+ rubygems_version: 2.0.3
172
140
  signing_key:
173
- specification_version: 3
141
+ specification_version: 4
174
142
  summary: Affiliate links with images for Spree using Paperclip.
175
143
  test_files: []
144
+
data/.gitignore DELETED
@@ -1,11 +0,0 @@
1
- \#*
2
- *~
3
- .#*
4
- .DS_Store
5
- .idea
6
- .project
7
- tmp
8
- nbproject
9
- *.swp
10
- spec/dummy
11
- spree_affiliate_links-*.gem
data/.rspec DELETED
@@ -1 +0,0 @@
1
- --colour