wagn 1.14.0.pre2 → 1.14.0.pre3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzYyZjJmM2EwMmFkZGUzNDI1MmMzOWVlMGUyYzE4MGY0M2U5NTYyZA==
4
+ ZDI4YWExYTkwZjk4M2MyNjhlM2ZkMTc3ZTJhMGMzMWY0ODQyYzU4Mw==
5
5
  data.tar.gz: !binary |-
6
- Yzk5ZTI0ZTk4ZGQ2MjkxNzRiMTI2ZTI0NTc0ZDJmMDAxMzgwZjliMQ==
6
+ YTg1Njg2NWFmNjI3ZDlhYTM5ZTJmOTNhNjZlMTg0YjYyYjdjZDJkZg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZDFkNzBiODAzOWVjNzhjNDJhZjY3MjYxNDMxNjYzMWY2OWMyMDQwMzViZDIw
10
- YzEyMTg2YWM2Mjg5NDI0ODhhNTI3ZWIyMThlMmQ2MjI4ZjljNzg0NTU0OTMz
11
- NTRhZTgxMzUxMDViM2VhNmRjZTk0Njg3ODEyNTY5OTRkNTg5Mzc=
9
+ ODgwMmU3MzU5ZTZiNWEyNjE5Y2JiMWE0NWVlMmM1ZmI2NzE1ZDY0M2VlMDBh
10
+ OWM5ZjYzYjk2MWIxN2FmMjFjYTdkYjY0MTVhOGI2MzJmOWEyNWNhODhhYmE0
11
+ MTYyZjk1NmNjYjc4NDM2NDk2ZDdkMTA1YjA5NWNjZWI3MTc1NjM=
12
12
  data.tar.gz: !binary |-
13
- MGY0NDcxNDY5ZGFjNDFjNWMzOTVjZjE5OGZhMDJhNjY5ZmIzZDBlYjhhMTFm
14
- MTdhMDZjODgxOTE3MDZjZmY1MDgxZjVmNDE0YWRmNTRlYmM5MjNlMTE1MTRj
15
- NTg5YjAzZjhhODA4N2E5ODk4Mzg1NTRkZDNjZjJiNzdmNTkyNzE=
13
+ NWZjNmZiYzVjNjYwNzA2NGNiM2U5NTNiMGRmMDhmYzYxM2MwYjU4MDRmZTRj
14
+ NWRkZjg4YjkwODE4MjYyMjNkMzIwZmEzYmM4NDA2MDg5NjZiMmFjOTk4N2Yz
15
+ MjllNjNhZDI1N2QzYmU0MzJiZGExOTcyNzZiN2E0ZjQ2Y2ZhYzc=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.14.0.pre2
1
+ 1.14.0.pre3
@@ -111,7 +111,7 @@ class AddEmailCards < Wagn::Migration
111
111
  ).each do |card|
112
112
  set_name = card.cardname.left
113
113
  card.name = "#{ set_name.gsub('*','' ).gsub('+', '_') }_email_template"
114
- card.type_code = 'email_template'
114
+ card.type = 'Email Template'
115
115
  card.save!
116
116
  Card.create! :name=>"#{set_name}+*on create", :content=>card.name
117
117
  end
@@ -124,7 +124,7 @@ class AddEmailCards < Wagn::Migration
124
124
  # move old send rule to on_create
125
125
  #fields = %w( to from cc bcc subject message attach )
126
126
  Card.search(:right=>"*send").each do |send_rule|
127
- Card.create! :name=>"send_rule.left+*on create", :content=>send_rule.content, :type_code=>:pointer
127
+ Card.create! :name=>"#{send_rule.left}+*on create", :content=>send_rule.content, :type_code=>:pointer
128
128
  send_rule.delete #@ethn: keep old rule for safety reasons?
129
129
  end
130
130
 
@@ -7,6 +7,7 @@ require 'rake'
7
7
  unless Rake::TaskManager.methods.include?(:redefine_task)
8
8
  module Rake
9
9
  module TaskManager
10
+
10
11
  def redefine_task(task_class, args, &block)
11
12
  task_name, arg_names, deps = resolve_args(args)
12
13
  task_name = task_class.scope_name(@scope, task_name)
@@ -41,7 +42,7 @@ namespace :db do
41
42
  end
42
43
  end
43
44
  end
44
-
45
+
45
46
  namespace :test do
46
47
  desc 'Prepare the test database and load the schema'
47
48
  Rake::Task.redefine_task( :prepare => :environment ) do
@@ -53,3 +54,6 @@ namespace :db do
53
54
  end
54
55
  end
55
56
  end
57
+
58
+
59
+
@@ -12,7 +12,7 @@ namespace :wagn do
12
12
  puts "not dropped"
13
13
  end
14
14
 
15
- ENV['SCHEMA'] = "#{Wagn.gem_root}/db/schema.rb"
15
+ ENV['SCHEMA'] ||= "#{Wagn.gem_root}/db/schema.rb"
16
16
 
17
17
  puts "creating"
18
18
  Rake::Task['db:create'].invoke
@@ -62,7 +62,7 @@ namespace :wagn do
62
62
 
63
63
  desc "migrate structure and cards"
64
64
  task :migrate =>:environment do
65
- ENV['SCHEMA'] = "#{Wagn.gem_root}/db/schema.rb"
65
+ ENV['SCHEMA'] ||= "#{Wagn.gem_root}/db/schema.rb"
66
66
 
67
67
  stamp = ENV['STAMP_MIGRATIONS']
68
68
 
@@ -102,7 +102,7 @@ namespace :wagn do
102
102
  desc "migrate cards"
103
103
  task :cards => :environment do
104
104
  Wagn::Cache.reset_global
105
- ENV['SCHEMA'] = "#{Wagn.gem_root}/db/schema.rb"
105
+ ENV['SCHEMA'] ||= "#{Wagn.gem_root}/db/schema.rb"
106
106
  Wagn.config.action_mailer.perform_deliveries = false
107
107
  Card.reset_column_information
108
108
  # this is needed in production mode to insure core db structures are loaded before schema_mode is set
@@ -119,7 +119,7 @@ namespace :wagn do
119
119
  desc "migrate deck cards"
120
120
  task :deck_cards => :environment do
121
121
  Wagn::Cache.reset_global
122
- ENV['SCHEMA'] = "#{Rails.root}/db/schema.rb"
122
+ ENV['SCHEMA'] ||= "#{Rails.root}/db/schema.rb"
123
123
  Wagn.config.action_mailer.perform_deliveries = false
124
124
  Card # this is needed in production mode to insure core db structures are loaded before schema_mode is set
125
125
 
@@ -133,7 +133,7 @@ namespace :wagn do
133
133
 
134
134
  desc 'write the version to a file (not usually called directly)' #maybe we should move this to a method?
135
135
  task :stamp, :suffix do |t, args|
136
- ENV['SCHEMA'] = "#{Wagn.gem_root}/db/schema.rb"
136
+ ENV['SCHEMA'] ||= "#{Wagn.gem_root}/db/schema.rb"
137
137
  Wagn.config.action_mailer.perform_deliveries = false
138
138
 
139
139
  stamp_file = Wagn::Version.schema_stamp_path( args[:suffix] )
data/lib/wagn/version.rb CHANGED
@@ -14,13 +14,10 @@ module Wagn
14
14
  end
15
15
 
16
16
  def schema_stamp_path type
17
- stamp_dir = ENV['SCHEMA_STAMP_PATH'] || if type.to_s =~ /deck/
18
- File.join( Wagn.root, 'config' )
19
- else
20
- File.join( Wagn.gem_root, 'config' )
21
- end
17
+ root_dir = type.to_s =~ /deck/ ? Wagn.root : Wagn.gem_root
18
+ stamp_dir = ENV['SCHEMA_STAMP_PATH'] || File.join( root, 'config' )
22
19
 
23
- File.join stamp_dir, "version#{ '_cards' if type.to_s =~ /card|deck/ }.txt"
20
+ File.join stamp_dir, "version#{ "_#{type}s" if type.present? }.txt"
24
21
  end
25
22
 
26
23
  end
data/wagn.gemspec CHANGED
@@ -25,25 +25,25 @@ Gem::Specification.new do |s|
25
25
 
26
26
  [
27
27
 
28
- [ 'rails', '3.2.16' ],
29
- [ 'smartname', '0.2.3' ],
30
-
31
- [ 'uuid', '~> 2.3' ],
32
- [ 'paperclip', '~> 2.8' ],
33
- [ 'htmlentities', '~> 4.3' ],
34
- [ 'rmagick', '~> 2.13' ],
35
- [ 'recaptcha', '~> 0.3' ],
36
- [ 'coderay', '~> 1.0' ],
37
- [ 'sass', '~> 3.2' ],
38
- [ 'coffee-script','~> 2.2' ],
39
- [ 'uglifier', '~> 2.5' ],
28
+ [ 'rails', '3.2.16' ],
29
+ [ 'smartname', '0.2.3' ],
30
+
31
+ [ 'uuid', '~> 2.3' ],
32
+ [ 'paperclip', '~> 2.8' ],
33
+ [ 'htmlentities', '~> 4.3' ],
34
+ [ 'rmagick', '~> 2.13' ],
35
+ [ 'recaptcha', '~> 0.3' ],
36
+ [ 'coderay', '~> 1.0' ],
37
+ [ 'sass', '~> 3.2' ],
38
+ [ 'coffee-script','~> 2.2' ],
39
+ [ 'uglifier', '~> 2.5' ],
40
40
 
41
- [ 'haml', '~> 4.0.5' ],
42
- [ 'kaminari', '~> 0.16.1' ],
43
- [ 'diffy', '~> 3.0.6' ],
44
- [ 'diff-lcs', '~> 1.2.5' ],
41
+ [ 'haml', '~> 4.0' ],
42
+ [ 'kaminari', '~> 0.16' ],
43
+ [ 'diffy', '~> 3.0' ],
44
+ [ 'diff-lcs', '~> 1.2' ],
45
45
  # should not depend!
46
- [ 'airbrake', '~> 3.1' ]
46
+ [ 'airbrake', '~> 3.1' ]
47
47
 
48
48
 
49
49
  ].each do |dep|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wagn
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.0.pre2
4
+ version: 1.14.0.pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-11-10 00:00:00.000000000 Z
13
+ date: 2014-11-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -172,56 +172,56 @@ dependencies:
172
172
  requirements:
173
173
  - - ~>
174
174
  - !ruby/object:Gem::Version
175
- version: 4.0.5
175
+ version: '4.0'
176
176
  type: :runtime
177
177
  prerelease: false
178
178
  version_requirements: !ruby/object:Gem::Requirement
179
179
  requirements:
180
180
  - - ~>
181
181
  - !ruby/object:Gem::Version
182
- version: 4.0.5
182
+ version: '4.0'
183
183
  - !ruby/object:Gem::Dependency
184
184
  name: kaminari
185
185
  requirement: !ruby/object:Gem::Requirement
186
186
  requirements:
187
187
  - - ~>
188
188
  - !ruby/object:Gem::Version
189
- version: 0.16.1
189
+ version: '0.16'
190
190
  type: :runtime
191
191
  prerelease: false
192
192
  version_requirements: !ruby/object:Gem::Requirement
193
193
  requirements:
194
194
  - - ~>
195
195
  - !ruby/object:Gem::Version
196
- version: 0.16.1
196
+ version: '0.16'
197
197
  - !ruby/object:Gem::Dependency
198
198
  name: diffy
199
199
  requirement: !ruby/object:Gem::Requirement
200
200
  requirements:
201
201
  - - ~>
202
202
  - !ruby/object:Gem::Version
203
- version: 3.0.6
203
+ version: '3.0'
204
204
  type: :runtime
205
205
  prerelease: false
206
206
  version_requirements: !ruby/object:Gem::Requirement
207
207
  requirements:
208
208
  - - ~>
209
209
  - !ruby/object:Gem::Version
210
- version: 3.0.6
210
+ version: '3.0'
211
211
  - !ruby/object:Gem::Dependency
212
212
  name: diff-lcs
213
213
  requirement: !ruby/object:Gem::Requirement
214
214
  requirements:
215
215
  - - ~>
216
216
  - !ruby/object:Gem::Version
217
- version: 1.2.5
217
+ version: '1.2'
218
218
  type: :runtime
219
219
  prerelease: false
220
220
  version_requirements: !ruby/object:Gem::Requirement
221
221
  requirements:
222
222
  - - ~>
223
223
  - !ruby/object:Gem::Version
224
- version: 1.2.5
224
+ version: '1.2'
225
225
  - !ruby/object:Gem::Dependency
226
226
  name: airbrake
227
227
  requirement: !ruby/object:Gem::Requirement