ttn_helpers 0.1 → 0.1.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.
- data/.gitignore +0 -0
- data/.rspec +0 -0
- data/.rvmrc +1 -0
- data/Gemfile +0 -0
- data/Gemfile.lock +26 -24
- data/MIT-LICENSE +0 -0
- data/README.md +0 -0
- data/Rakefile +1 -1
- data/lib/TTN/helpers/action_view/links.rb +0 -0
- data/lib/TTN/helpers/active_record/has_dragonfly_image.rb +2 -3
- data/lib/TTN/helpers/core/hash.rb +0 -0
- data/lib/TTN/helpers/core/string.rb +0 -0
- data/lib/TTN/helpers/engine.rb +0 -0
- data/lib/TTN/helpers/version.rb +1 -1
- data/lib/ttn_helpers.rb +0 -0
- data/spec/dummy/Rakefile +0 -0
- data/spec/dummy/app/controllers/application_controller.rb +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +0 -0
- data/spec/dummy/config/application.rb +0 -0
- data/spec/dummy/config/boot.rb +0 -0
- data/spec/dummy/config/database.yml +0 -0
- data/spec/dummy/config/environment.rb +0 -0
- data/spec/dummy/config/environments/development.rb +0 -0
- data/spec/dummy/config/environments/production.rb +0 -0
- data/spec/dummy/config/environments/test.rb +0 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -0
- data/spec/dummy/config/initializers/dragonfly.rb +0 -0
- data/spec/dummy/config/initializers/inflections.rb +0 -0
- data/spec/dummy/config/initializers/mime_types.rb +0 -0
- data/spec/dummy/config/initializers/secret_token.rb +0 -0
- data/spec/dummy/config/initializers/session_store.rb +0 -0
- data/spec/dummy/config/locales/en.yml +0 -0
- data/spec/dummy/config/routes.rb +0 -0
- data/spec/dummy/config.ru +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +0 -0
- data/spec/dummy/log/production.log +0 -0
- data/spec/dummy/log/server.log +0 -0
- data/spec/dummy/public/404.html +0 -0
- data/spec/dummy/public/422.html +0 -0
- data/spec/dummy/public/500.html +0 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/javascripts/application.js +0 -0
- data/spec/dummy/public/javascripts/controls.js +0 -0
- data/spec/dummy/public/javascripts/dragdrop.js +0 -0
- data/spec/dummy/public/javascripts/effects.js +0 -0
- data/spec/dummy/public/javascripts/prototype.js +0 -0
- data/spec/dummy/public/javascripts/rails.js +0 -0
- data/spec/dummy/public/stylesheets/.gitkeep +0 -0
- data/spec/integration/action_view_spec.rb +0 -0
- data/spec/integration/active_record_spec.rb +0 -0
- data/spec/integration/core_spec.rb +0 -0
- data/spec/integration/navigation_spec.rb +0 -0
- data/spec/spec_helper.rb +2 -2
- data/spec/support/engine.jpg +0 -0
- data/spec/ttn_helpers_spec.rb +0 -0
- data/ttn_helpers.gemspec +0 -0
- metadata +21 -19
data/.gitignore
CHANGED
|
File without changes
|
data/.rspec
CHANGED
|
File without changes
|
data/.rvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
rvm use --create ree@ttn_helpers
|
data/Gemfile
CHANGED
|
File without changes
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
ttn_helpers (0.1)
|
|
4
|
+
ttn_helpers (0.1.1)
|
|
5
5
|
rails (~> 3)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -37,7 +37,7 @@ GEM
|
|
|
37
37
|
acts_as_fu (0.0.7.2)
|
|
38
38
|
activerecord
|
|
39
39
|
sqlite3-ruby
|
|
40
|
-
arel (2.0.
|
|
40
|
+
arel (2.0.7)
|
|
41
41
|
builder (2.1.2)
|
|
42
42
|
capybara (0.4.0)
|
|
43
43
|
celerity (>= 0.7.9)
|
|
@@ -48,12 +48,12 @@ GEM
|
|
|
48
48
|
rack-test (>= 0.5.4)
|
|
49
49
|
selenium-webdriver (>= 0.0.27)
|
|
50
50
|
xpath (~> 0.1.2)
|
|
51
|
-
celerity (0.8.
|
|
52
|
-
childprocess (0.1.
|
|
51
|
+
celerity (0.8.7)
|
|
52
|
+
childprocess (0.1.6)
|
|
53
53
|
ffi (~> 0.6.3)
|
|
54
|
-
culerity (0.2.
|
|
54
|
+
culerity (0.2.14)
|
|
55
55
|
diff-lcs (1.1.2)
|
|
56
|
-
dragonfly (0.8.
|
|
56
|
+
dragonfly (0.8.2)
|
|
57
57
|
rack
|
|
58
58
|
erubis (2.6.6)
|
|
59
59
|
abstract (>= 1.0.0)
|
|
@@ -61,20 +61,20 @@ GEM
|
|
|
61
61
|
rake (>= 0.8.7)
|
|
62
62
|
i18n (0.5.0)
|
|
63
63
|
json_pure (1.4.6)
|
|
64
|
-
mail (2.2.
|
|
64
|
+
mail (2.2.14)
|
|
65
65
|
activesupport (>= 2.3.6)
|
|
66
|
-
i18n (
|
|
66
|
+
i18n (>= 0.4.0)
|
|
67
67
|
mime-types (~> 1.16)
|
|
68
68
|
treetop (~> 1.4.8)
|
|
69
69
|
mime-types (1.16)
|
|
70
70
|
nokogiri (1.4.4)
|
|
71
71
|
polyglot (0.3.1)
|
|
72
72
|
rack (1.2.1)
|
|
73
|
-
rack-cache (0
|
|
73
|
+
rack-cache (1.0)
|
|
74
74
|
rack (>= 0.4)
|
|
75
75
|
rack-mount (0.6.13)
|
|
76
76
|
rack (>= 1.0.0)
|
|
77
|
-
rack-test (0.5.
|
|
77
|
+
rack-test (0.5.7)
|
|
78
78
|
rack (>= 1.0)
|
|
79
79
|
rails (3.0.3)
|
|
80
80
|
actionmailer (= 3.0.3)
|
|
@@ -90,31 +90,33 @@ GEM
|
|
|
90
90
|
rake (>= 0.8.7)
|
|
91
91
|
thor (~> 0.14.4)
|
|
92
92
|
rake (0.8.7)
|
|
93
|
-
rspec (2.
|
|
94
|
-
rspec-core (~> 2.
|
|
95
|
-
rspec-expectations (~> 2.
|
|
96
|
-
rspec-mocks (~> 2.
|
|
97
|
-
rspec-core (2.
|
|
98
|
-
rspec-expectations (2.
|
|
93
|
+
rspec (2.4.0)
|
|
94
|
+
rspec-core (~> 2.4.0)
|
|
95
|
+
rspec-expectations (~> 2.4.0)
|
|
96
|
+
rspec-mocks (~> 2.4.0)
|
|
97
|
+
rspec-core (2.4.0)
|
|
98
|
+
rspec-expectations (2.4.0)
|
|
99
99
|
diff-lcs (~> 1.1.2)
|
|
100
|
-
rspec-mocks (2.
|
|
101
|
-
rspec-rails (2.
|
|
100
|
+
rspec-mocks (2.4.0)
|
|
101
|
+
rspec-rails (2.4.1)
|
|
102
102
|
actionpack (~> 3.0)
|
|
103
103
|
activesupport (~> 3.0)
|
|
104
104
|
railties (~> 3.0)
|
|
105
|
-
rspec (~> 2.
|
|
105
|
+
rspec (~> 2.4.0)
|
|
106
106
|
rubyzip (0.9.4)
|
|
107
|
-
selenium-webdriver (0.1.
|
|
108
|
-
childprocess (
|
|
107
|
+
selenium-webdriver (0.1.2)
|
|
108
|
+
childprocess (~> 0.1.5)
|
|
109
109
|
ffi (~> 0.6.3)
|
|
110
110
|
json_pure
|
|
111
111
|
rubyzip
|
|
112
|
-
sqlite3
|
|
112
|
+
sqlite3 (1.3.3)
|
|
113
|
+
sqlite3-ruby (1.3.3)
|
|
114
|
+
sqlite3 (>= 1.3.3)
|
|
113
115
|
thor (0.14.6)
|
|
114
116
|
treetop (1.4.9)
|
|
115
117
|
polyglot (>= 0.3.1)
|
|
116
|
-
tzinfo (0.3.
|
|
117
|
-
xpath (0.1.
|
|
118
|
+
tzinfo (0.3.24)
|
|
119
|
+
xpath (0.1.3)
|
|
118
120
|
nokogiri (~> 1.3)
|
|
119
121
|
|
|
120
122
|
PLATFORMS
|
data/MIT-LICENSE
CHANGED
|
File without changes
|
data/README.md
CHANGED
|
File without changes
|
data/Rakefile
CHANGED
|
File without changes
|
|
@@ -7,13 +7,12 @@ module TTN
|
|
|
7
7
|
|
|
8
8
|
image_accessor options[:name]
|
|
9
9
|
|
|
10
|
-
validates_presence_of options[:name]
|
|
10
|
+
validates_presence_of options[:name] if options[:validates_presence]
|
|
11
11
|
|
|
12
12
|
validates_size_of options[:name], :maximum => options[:max_size_mb].megabytes,
|
|
13
|
-
:message => "Image is too large, max #{options[:max_size_mb]}mb",
|
|
14
13
|
:max_image_size => options[:max_size_mb].megabytes if options[:validates_size]
|
|
15
14
|
|
|
16
|
-
validates_property :mime_type, :of => options[:name], :in => %w(image/jpeg image/png image/gif)
|
|
15
|
+
validates_property :mime_type, :of => options[:name], :in => %w(image/jpeg image/png image/gif)
|
|
17
16
|
end
|
|
18
17
|
|
|
19
18
|
|
|
File without changes
|
|
File without changes
|
data/lib/TTN/helpers/engine.rb
CHANGED
|
File without changes
|
data/lib/TTN/helpers/version.rb
CHANGED
data/lib/ttn_helpers.rb
CHANGED
|
File without changes
|
data/spec/dummy/Rakefile
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/spec/dummy/config/boot.rb
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/spec/dummy/config/routes.rb
CHANGED
|
File without changes
|
data/spec/dummy/config.ru
CHANGED
|
File without changes
|
data/spec/dummy/db/test.sqlite3
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/spec/dummy/log/server.log
CHANGED
|
File without changes
|
data/spec/dummy/public/404.html
CHANGED
|
File without changes
|
data/spec/dummy/public/422.html
CHANGED
|
File without changes
|
data/spec/dummy/public/500.html
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
|
@@ -22,11 +22,11 @@ ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__
|
|
|
22
22
|
# Load support files
|
|
23
23
|
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
RSpec.configure do |config|
|
|
26
26
|
# Remove this line if you don't want Rspec's should and should_not
|
|
27
27
|
# methods or matchers
|
|
28
28
|
require 'rspec/expectations'
|
|
29
|
-
config.include
|
|
29
|
+
config.include RSpec::Matchers
|
|
30
30
|
|
|
31
31
|
require 'acts_as_fu'
|
|
32
32
|
config.include ActsAsFu
|
data/spec/support/engine.jpg
CHANGED
|
File without changes
|
data/spec/ttn_helpers_spec.rb
CHANGED
|
File without changes
|
data/ttn_helpers.gemspec
CHANGED
|
File without changes
|
metadata
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ttn_helpers
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
5
|
-
prerelease:
|
|
4
|
+
hash: 25
|
|
5
|
+
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
|
|
9
|
+
- 1
|
|
10
|
+
version: 0.1.1
|
|
10
11
|
platform: ruby
|
|
11
12
|
authors:
|
|
12
13
|
- Jonathan Davies
|
|
@@ -15,7 +16,7 @@ autorequire:
|
|
|
15
16
|
bindir: bin
|
|
16
17
|
cert_chain: []
|
|
17
18
|
|
|
18
|
-
date:
|
|
19
|
+
date: 2011-01-20 00:00:00 +00:00
|
|
19
20
|
default_executable:
|
|
20
21
|
dependencies:
|
|
21
22
|
- !ruby/object:Gem::Dependency
|
|
@@ -28,10 +29,10 @@ dependencies:
|
|
|
28
29
|
segments:
|
|
29
30
|
- 3
|
|
30
31
|
version: "3"
|
|
31
|
-
name: rails
|
|
32
32
|
prerelease: false
|
|
33
|
-
type: :runtime
|
|
34
33
|
version_requirements: *id001
|
|
34
|
+
type: :runtime
|
|
35
|
+
name: rails
|
|
35
36
|
- !ruby/object:Gem::Dependency
|
|
36
37
|
requirement: &id002 !ruby/object:Gem::Requirement
|
|
37
38
|
none: false
|
|
@@ -44,10 +45,10 @@ dependencies:
|
|
|
44
45
|
- 0
|
|
45
46
|
- 0
|
|
46
47
|
version: 1.0.0
|
|
47
|
-
name: bundler
|
|
48
48
|
prerelease: false
|
|
49
|
-
type: :development
|
|
50
49
|
version_requirements: *id002
|
|
50
|
+
type: :development
|
|
51
|
+
name: bundler
|
|
51
52
|
- !ruby/object:Gem::Dependency
|
|
52
53
|
requirement: &id003 !ruby/object:Gem::Requirement
|
|
53
54
|
none: false
|
|
@@ -58,10 +59,10 @@ dependencies:
|
|
|
58
59
|
segments:
|
|
59
60
|
- 2
|
|
60
61
|
version: "2"
|
|
61
|
-
name: rspec-rails
|
|
62
62
|
prerelease: false
|
|
63
|
-
type: :development
|
|
64
63
|
version_requirements: *id003
|
|
64
|
+
type: :development
|
|
65
|
+
name: rspec-rails
|
|
65
66
|
- !ruby/object:Gem::Dependency
|
|
66
67
|
requirement: &id004 !ruby/object:Gem::Requirement
|
|
67
68
|
none: false
|
|
@@ -72,10 +73,10 @@ dependencies:
|
|
|
72
73
|
segments:
|
|
73
74
|
- 0
|
|
74
75
|
version: "0"
|
|
75
|
-
name: capybara
|
|
76
76
|
prerelease: false
|
|
77
|
-
type: :development
|
|
78
77
|
version_requirements: *id004
|
|
78
|
+
type: :development
|
|
79
|
+
name: capybara
|
|
79
80
|
- !ruby/object:Gem::Dependency
|
|
80
81
|
requirement: &id005 !ruby/object:Gem::Requirement
|
|
81
82
|
none: false
|
|
@@ -86,10 +87,10 @@ dependencies:
|
|
|
86
87
|
segments:
|
|
87
88
|
- 0
|
|
88
89
|
version: "0"
|
|
89
|
-
name: acts_as_fu
|
|
90
90
|
prerelease: false
|
|
91
|
-
type: :development
|
|
92
91
|
version_requirements: *id005
|
|
92
|
+
type: :development
|
|
93
|
+
name: acts_as_fu
|
|
93
94
|
- !ruby/object:Gem::Dependency
|
|
94
95
|
requirement: &id006 !ruby/object:Gem::Requirement
|
|
95
96
|
none: false
|
|
@@ -100,10 +101,10 @@ dependencies:
|
|
|
100
101
|
segments:
|
|
101
102
|
- 0
|
|
102
103
|
version: "0"
|
|
103
|
-
name: dragonfly
|
|
104
104
|
prerelease: false
|
|
105
|
-
type: :development
|
|
106
105
|
version_requirements: *id006
|
|
106
|
+
type: :development
|
|
107
|
+
name: dragonfly
|
|
107
108
|
- !ruby/object:Gem::Dependency
|
|
108
109
|
requirement: &id007 !ruby/object:Gem::Requirement
|
|
109
110
|
none: false
|
|
@@ -114,10 +115,10 @@ dependencies:
|
|
|
114
115
|
segments:
|
|
115
116
|
- 0
|
|
116
117
|
version: "0"
|
|
117
|
-
name: rack-cache
|
|
118
118
|
prerelease: false
|
|
119
|
-
type: :development
|
|
120
119
|
version_requirements: *id007
|
|
120
|
+
type: :development
|
|
121
|
+
name: rack-cache
|
|
121
122
|
description: ThroughTheNet rails helpers for internal use
|
|
122
123
|
email:
|
|
123
124
|
- info@throughthenet.com
|
|
@@ -130,6 +131,7 @@ extra_rdoc_files: []
|
|
|
130
131
|
files:
|
|
131
132
|
- .gitignore
|
|
132
133
|
- .rspec
|
|
134
|
+
- .rvmrc
|
|
133
135
|
- Gemfile
|
|
134
136
|
- Gemfile.lock
|
|
135
137
|
- MIT-LICENSE
|
|
@@ -218,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
218
220
|
requirements: []
|
|
219
221
|
|
|
220
222
|
rubyforge_project:
|
|
221
|
-
rubygems_version: 1.
|
|
223
|
+
rubygems_version: 1.4.2
|
|
222
224
|
signing_key:
|
|
223
225
|
specification_version: 3
|
|
224
226
|
summary: ThroughTheNet rails helpers for internal use
|