keynote 0.2.0pre1 → 0.2.0pre2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of keynote might be problematic. Click here for more details.
- checksums.yaml +15 -0
- data/.editorconfig +14 -0
- data/.gitignore +0 -1
- data/.travis.yml +16 -0
- data/Appraisals +6 -9
- data/CHANGELOG.md +10 -3
- data/README.md +2 -1
- data/Rakefile +4 -0
- data/gemfiles/rails30.gemfile +7 -0
- data/gemfiles/rails30.gemfile.lock +114 -0
- data/gemfiles/rails31.gemfile +7 -0
- data/gemfiles/rails31.gemfile.lock +124 -0
- data/gemfiles/rails32.gemfile +7 -0
- data/gemfiles/rails32.gemfile.lock +123 -0
- data/gemfiles/rails4.gemfile +9 -0
- data/gemfiles/rails4.gemfile.lock +120 -0
- data/keynote.gemspec +4 -1
- data/lib/keynote.rb +1 -0
- data/lib/keynote/inline.rb +207 -0
- data/lib/keynote/presenter.rb +31 -0
- data/lib/keynote/version.rb +1 -1
- data/spec/benchmarks.rb +72 -0
- data/spec/helper.rb +2 -11
- data/spec/inline_spec.rb +147 -0
- data/spec/presenter_spec.rb +52 -3
- metadata +61 -34
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZGI0NGI2NzM1NTYwNDk0YTEyNmIxMDNmMTQxMTBmZDFiNGQ1ZTU4ZA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MzhjMjY0ZDBlNmY2NGYxNTE5ODI4YTBhZGMwYmYxZDUzNzJmZTVkNA==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ZGY2ZmRiYzZmNmQ2NDY0NzdlN2QwMzczY2IyYTAzN2Q5NDkxYmJhYjk1ZjZh
|
10
|
+
MmZkNWU5NDFkNjE4NTFkYzc0MDliZGVmZWFjZmVhMTJmYjhhMjgwMjhhYWYx
|
11
|
+
ZTZjZTI1NzAwOGJjYmY1YWNhM2E4ZThkOWNiYzFkMjdiOGI0MjI=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MjQ5NzdmYjAxYmUxNzA1NTE4M2E1YTc2Y2Y2NDQ0NDNiNTA4ZDA4MTM4M2U2
|
14
|
+
MjBlOWI1OTVhNWU1ZDU2YzY1ODA4ZjYzMTZiOWE3NGI5M2Y0NWFiODUzOTgy
|
15
|
+
OWY0ZDEwMGVlMWVlY2ViMjI0NWZhYjMzN2Q1N2NmYjYyNGE3ZTc=
|
data/.editorconfig
ADDED
data/.gitignore
CHANGED
data/.travis.yml
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
language: ruby
|
2
|
+
rvm:
|
3
|
+
- 1.9.2
|
4
|
+
- 1.9.3
|
5
|
+
- 2.0.0
|
6
|
+
gemfile:
|
7
|
+
- gemfiles/rails30.gemfile
|
8
|
+
- gemfiles/rails31.gemfile
|
9
|
+
- gemfiles/rails32.gemfile
|
10
|
+
- gemfiles/rails4.gemfile
|
11
|
+
matrix:
|
12
|
+
exclude:
|
13
|
+
- rvm: 1.9.2
|
14
|
+
gemfile: gemfiles/rails4.gemfile
|
15
|
+
notifications:
|
16
|
+
email: false
|
data/Appraisals
CHANGED
@@ -1,20 +1,17 @@
|
|
1
1
|
appraise "rails30" do
|
2
|
-
gem "rails", "3.0.
|
2
|
+
gem "rails", "3.0.20"
|
3
3
|
end
|
4
4
|
|
5
5
|
appraise "rails31" do
|
6
|
-
gem "rails", "3.1.
|
6
|
+
gem "rails", "3.1.12"
|
7
7
|
end
|
8
8
|
|
9
9
|
appraise "rails32" do
|
10
|
-
gem "rails", "3.2.
|
10
|
+
gem "rails", "3.2.13"
|
11
11
|
end
|
12
12
|
|
13
13
|
appraise "rails4" do
|
14
|
-
gem "rails",
|
15
|
-
|
16
|
-
gem "
|
17
|
-
:git => "git@github.com:rails/activerecord-deprecated_finders"
|
18
|
-
gem "journey",
|
19
|
-
:git => "git@github.com:rails/journey"
|
14
|
+
gem "rails", "4.0.0rc1"
|
15
|
+
gem "activerecord-deprecated_finders", "~> 1.0.2"
|
16
|
+
gem "journey", "~> 1.0.4"
|
20
17
|
end
|
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,17 @@
|
|
1
|
-
## v0.2.
|
1
|
+
## v0.2.0
|
2
|
+
* Add `Keynote::Inline`, a module that presenters can extend to enable inline
|
3
|
+
templating in any language supported by Rails.
|
4
|
+
* Stop including the `Keynote::Rumble` module in presenters by default;
|
5
|
+
presenters that want to use the `build_html` method must explicitly include
|
6
|
+
it.
|
7
|
+
* Including `Keynote::Rumble` now provides a `use_html_5_tags` class method
|
8
|
+
that adds a more complete set of Rumble tag methods to the class.
|
9
|
+
* Add `object_names` class method to presenters, returning an array of the
|
10
|
+
symbols that have been passed into the `presents` method.
|
2
11
|
* Add an implementation of the `present`/`k` method that's available in test
|
3
12
|
cases. Update test generators accordingly.
|
4
13
|
* Update minitest-rails integration to be compatible with the newest
|
5
14
|
version of minitest-rails (on Rails 3.0, 3.1, 3.2, and 4.0).
|
6
|
-
* Add `use_html_5_tags` class method to `Keynote::Presenter`. This adds a more
|
7
|
-
complete set of Rumble tag methods to the class.
|
8
15
|
|
9
16
|
## v0.1.3
|
10
17
|
* Add block form of `present`. If you pass a block into a `present` call, it
|
data/README.md
CHANGED
@@ -2,7 +2,8 @@
|
|
2
2
|
|
3
3
|
*Flexible presenters for Rails.*
|
4
4
|
|
5
|
-
[![
|
5
|
+
[![Travis CI](https://api.travis-ci.org/rf-/keynote.png)](https://travis-ci.org/rf-/keynote/builds)
|
6
|
+
[![Code Climate](https://codeclimate.com/github/rf-/keynote.png)](https://codeclimate.com/github/rf-/keynote)
|
6
7
|
|
7
8
|
A presenter is an object that encapsulates view logic. Like Rails helpers,
|
8
9
|
presenters help you keep complex logic out of your templates.
|
data/Rakefile
CHANGED
@@ -0,0 +1,114 @@
|
|
1
|
+
PATH
|
2
|
+
remote: /Users/rfitz/src/keynote
|
3
|
+
specs:
|
4
|
+
keynote (0.2.0pre1)
|
5
|
+
rails (>= 3.0.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
abstract (1.0.0)
|
11
|
+
actionmailer (3.0.20)
|
12
|
+
actionpack (= 3.0.20)
|
13
|
+
mail (~> 2.2.19)
|
14
|
+
actionpack (3.0.20)
|
15
|
+
activemodel (= 3.0.20)
|
16
|
+
activesupport (= 3.0.20)
|
17
|
+
builder (~> 2.1.2)
|
18
|
+
erubis (~> 2.6.6)
|
19
|
+
i18n (~> 0.5.0)
|
20
|
+
rack (~> 1.2.5)
|
21
|
+
rack-mount (~> 0.6.14)
|
22
|
+
rack-test (~> 0.5.7)
|
23
|
+
tzinfo (~> 0.3.23)
|
24
|
+
activemodel (3.0.20)
|
25
|
+
activesupport (= 3.0.20)
|
26
|
+
builder (~> 2.1.2)
|
27
|
+
i18n (~> 0.5.0)
|
28
|
+
activerecord (3.0.20)
|
29
|
+
activemodel (= 3.0.20)
|
30
|
+
activesupport (= 3.0.20)
|
31
|
+
arel (~> 2.0.10)
|
32
|
+
tzinfo (~> 0.3.23)
|
33
|
+
activeresource (3.0.20)
|
34
|
+
activemodel (= 3.0.20)
|
35
|
+
activesupport (= 3.0.20)
|
36
|
+
activesupport (3.0.20)
|
37
|
+
appraisal (0.5.2)
|
38
|
+
bundler
|
39
|
+
rake
|
40
|
+
arel (2.0.10)
|
41
|
+
builder (2.1.2)
|
42
|
+
coderay (1.0.9)
|
43
|
+
erubis (2.6.6)
|
44
|
+
abstract (>= 1.0.0)
|
45
|
+
haml (4.0.2)
|
46
|
+
tilt
|
47
|
+
i18n (0.5.0)
|
48
|
+
json (1.7.7)
|
49
|
+
mail (2.2.19)
|
50
|
+
activesupport (>= 2.3.6)
|
51
|
+
i18n (>= 0.4.0)
|
52
|
+
mime-types (~> 1.16)
|
53
|
+
treetop (~> 1.4.8)
|
54
|
+
metaclass (0.0.1)
|
55
|
+
method_source (0.8.1)
|
56
|
+
mime-types (1.23)
|
57
|
+
minitest (4.7.4)
|
58
|
+
mocha (0.13.3)
|
59
|
+
metaclass (~> 0.0.1)
|
60
|
+
polyglot (0.3.3)
|
61
|
+
pry (0.9.12.1)
|
62
|
+
coderay (~> 1.0.5)
|
63
|
+
method_source (~> 0.8)
|
64
|
+
slop (~> 3.4)
|
65
|
+
rack (1.2.8)
|
66
|
+
rack-mount (0.6.14)
|
67
|
+
rack (>= 1.0.0)
|
68
|
+
rack-test (0.5.7)
|
69
|
+
rack (>= 1.0)
|
70
|
+
rails (3.0.20)
|
71
|
+
actionmailer (= 3.0.20)
|
72
|
+
actionpack (= 3.0.20)
|
73
|
+
activerecord (= 3.0.20)
|
74
|
+
activeresource (= 3.0.20)
|
75
|
+
activesupport (= 3.0.20)
|
76
|
+
bundler (~> 1.0)
|
77
|
+
railties (= 3.0.20)
|
78
|
+
railties (3.0.20)
|
79
|
+
actionpack (= 3.0.20)
|
80
|
+
activesupport (= 3.0.20)
|
81
|
+
rake (>= 0.8.7)
|
82
|
+
rdoc (~> 3.4)
|
83
|
+
thor (~> 0.14.4)
|
84
|
+
rake (10.0.4)
|
85
|
+
rdoc (3.12.2)
|
86
|
+
json (~> 1.4)
|
87
|
+
redcarpet (2.2.2)
|
88
|
+
slim (1.3.8)
|
89
|
+
temple (~> 0.6.3)
|
90
|
+
tilt (~> 1.3.3)
|
91
|
+
slop (3.4.4)
|
92
|
+
temple (0.6.4)
|
93
|
+
thor (0.14.6)
|
94
|
+
tilt (1.3.7)
|
95
|
+
treetop (1.4.12)
|
96
|
+
polyglot
|
97
|
+
polyglot (>= 0.3.1)
|
98
|
+
tzinfo (0.3.37)
|
99
|
+
yard (0.8.6.1)
|
100
|
+
|
101
|
+
PLATFORMS
|
102
|
+
ruby
|
103
|
+
|
104
|
+
DEPENDENCIES
|
105
|
+
appraisal
|
106
|
+
haml
|
107
|
+
keynote!
|
108
|
+
minitest
|
109
|
+
mocha (~> 0.13.3)
|
110
|
+
pry
|
111
|
+
rails (= 3.0.20)
|
112
|
+
redcarpet
|
113
|
+
slim
|
114
|
+
yard
|
@@ -0,0 +1,124 @@
|
|
1
|
+
PATH
|
2
|
+
remote: /Users/rfitz/src/keynote
|
3
|
+
specs:
|
4
|
+
keynote (0.2.0pre1)
|
5
|
+
rails (>= 3.0.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
actionmailer (3.1.12)
|
11
|
+
actionpack (= 3.1.12)
|
12
|
+
mail (~> 2.4.4)
|
13
|
+
actionpack (3.1.12)
|
14
|
+
activemodel (= 3.1.12)
|
15
|
+
activesupport (= 3.1.12)
|
16
|
+
builder (~> 3.0.0)
|
17
|
+
erubis (~> 2.7.0)
|
18
|
+
i18n (~> 0.6)
|
19
|
+
rack (~> 1.3.6)
|
20
|
+
rack-cache (~> 1.2)
|
21
|
+
rack-mount (~> 0.8.2)
|
22
|
+
rack-test (~> 0.6.1)
|
23
|
+
sprockets (~> 2.0.4)
|
24
|
+
activemodel (3.1.12)
|
25
|
+
activesupport (= 3.1.12)
|
26
|
+
builder (~> 3.0.0)
|
27
|
+
i18n (~> 0.6)
|
28
|
+
activerecord (3.1.12)
|
29
|
+
activemodel (= 3.1.12)
|
30
|
+
activesupport (= 3.1.12)
|
31
|
+
arel (~> 2.2.3)
|
32
|
+
tzinfo (~> 0.3.29)
|
33
|
+
activeresource (3.1.12)
|
34
|
+
activemodel (= 3.1.12)
|
35
|
+
activesupport (= 3.1.12)
|
36
|
+
activesupport (3.1.12)
|
37
|
+
multi_json (~> 1.0)
|
38
|
+
appraisal (0.5.2)
|
39
|
+
bundler
|
40
|
+
rake
|
41
|
+
arel (2.2.3)
|
42
|
+
builder (3.0.4)
|
43
|
+
coderay (1.0.9)
|
44
|
+
erubis (2.7.0)
|
45
|
+
haml (4.0.2)
|
46
|
+
tilt
|
47
|
+
hike (1.2.2)
|
48
|
+
i18n (0.6.4)
|
49
|
+
json (1.7.7)
|
50
|
+
mail (2.4.4)
|
51
|
+
i18n (>= 0.4.0)
|
52
|
+
mime-types (~> 1.16)
|
53
|
+
treetop (~> 1.4.8)
|
54
|
+
metaclass (0.0.1)
|
55
|
+
method_source (0.8.1)
|
56
|
+
mime-types (1.23)
|
57
|
+
minitest (4.7.4)
|
58
|
+
mocha (0.13.3)
|
59
|
+
metaclass (~> 0.0.1)
|
60
|
+
multi_json (1.7.2)
|
61
|
+
polyglot (0.3.3)
|
62
|
+
pry (0.9.12.1)
|
63
|
+
coderay (~> 1.0.5)
|
64
|
+
method_source (~> 0.8)
|
65
|
+
slop (~> 3.4)
|
66
|
+
rack (1.3.10)
|
67
|
+
rack-cache (1.2)
|
68
|
+
rack (>= 0.4)
|
69
|
+
rack-mount (0.8.3)
|
70
|
+
rack (>= 1.0.0)
|
71
|
+
rack-ssl (1.3.3)
|
72
|
+
rack
|
73
|
+
rack-test (0.6.2)
|
74
|
+
rack (>= 1.0)
|
75
|
+
rails (3.1.12)
|
76
|
+
actionmailer (= 3.1.12)
|
77
|
+
actionpack (= 3.1.12)
|
78
|
+
activerecord (= 3.1.12)
|
79
|
+
activeresource (= 3.1.12)
|
80
|
+
activesupport (= 3.1.12)
|
81
|
+
bundler (~> 1.0)
|
82
|
+
railties (= 3.1.12)
|
83
|
+
railties (3.1.12)
|
84
|
+
actionpack (= 3.1.12)
|
85
|
+
activesupport (= 3.1.12)
|
86
|
+
rack-ssl (~> 1.3.2)
|
87
|
+
rake (>= 0.8.7)
|
88
|
+
rdoc (~> 3.4)
|
89
|
+
thor (~> 0.14.6)
|
90
|
+
rake (10.0.4)
|
91
|
+
rdoc (3.12.2)
|
92
|
+
json (~> 1.4)
|
93
|
+
redcarpet (2.2.2)
|
94
|
+
slim (1.0.1)
|
95
|
+
temple (~> 0.3.0)
|
96
|
+
tilt (~> 1.2)
|
97
|
+
slop (3.4.4)
|
98
|
+
sprockets (2.0.4)
|
99
|
+
hike (~> 1.2)
|
100
|
+
rack (~> 1.0)
|
101
|
+
tilt (~> 1.1, != 1.3.0)
|
102
|
+
temple (0.3.5)
|
103
|
+
thor (0.14.6)
|
104
|
+
tilt (1.4.0)
|
105
|
+
treetop (1.4.12)
|
106
|
+
polyglot
|
107
|
+
polyglot (>= 0.3.1)
|
108
|
+
tzinfo (0.3.37)
|
109
|
+
yard (0.8.6.1)
|
110
|
+
|
111
|
+
PLATFORMS
|
112
|
+
ruby
|
113
|
+
|
114
|
+
DEPENDENCIES
|
115
|
+
appraisal
|
116
|
+
haml
|
117
|
+
keynote!
|
118
|
+
minitest
|
119
|
+
mocha (~> 0.13.3)
|
120
|
+
pry
|
121
|
+
rails (= 3.1.12)
|
122
|
+
redcarpet
|
123
|
+
slim
|
124
|
+
yard
|
@@ -0,0 +1,123 @@
|
|
1
|
+
PATH
|
2
|
+
remote: /Users/rfitz/src/keynote
|
3
|
+
specs:
|
4
|
+
keynote (0.2.0pre1)
|
5
|
+
rails (>= 3.0.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
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
|
+
builder (~> 3.0.0)
|
17
|
+
erubis (~> 2.7.0)
|
18
|
+
journey (~> 1.0.4)
|
19
|
+
rack (~> 1.4.5)
|
20
|
+
rack-cache (~> 1.2)
|
21
|
+
rack-test (~> 0.6.1)
|
22
|
+
sprockets (~> 2.2.1)
|
23
|
+
activemodel (3.2.13)
|
24
|
+
activesupport (= 3.2.13)
|
25
|
+
builder (~> 3.0.0)
|
26
|
+
activerecord (3.2.13)
|
27
|
+
activemodel (= 3.2.13)
|
28
|
+
activesupport (= 3.2.13)
|
29
|
+
arel (~> 3.0.2)
|
30
|
+
tzinfo (~> 0.3.29)
|
31
|
+
activeresource (3.2.13)
|
32
|
+
activemodel (= 3.2.13)
|
33
|
+
activesupport (= 3.2.13)
|
34
|
+
activesupport (3.2.13)
|
35
|
+
i18n (= 0.6.1)
|
36
|
+
multi_json (~> 1.0)
|
37
|
+
appraisal (0.5.2)
|
38
|
+
bundler
|
39
|
+
rake
|
40
|
+
arel (3.0.2)
|
41
|
+
builder (3.0.4)
|
42
|
+
coderay (1.0.9)
|
43
|
+
erubis (2.7.0)
|
44
|
+
haml (4.0.2)
|
45
|
+
tilt
|
46
|
+
hike (1.2.2)
|
47
|
+
i18n (0.6.1)
|
48
|
+
journey (1.0.4)
|
49
|
+
json (1.7.7)
|
50
|
+
mail (2.5.3)
|
51
|
+
i18n (>= 0.4.0)
|
52
|
+
mime-types (~> 1.16)
|
53
|
+
treetop (~> 1.4.8)
|
54
|
+
metaclass (0.0.1)
|
55
|
+
method_source (0.8.1)
|
56
|
+
mime-types (1.23)
|
57
|
+
minitest (4.7.4)
|
58
|
+
mocha (0.13.3)
|
59
|
+
metaclass (~> 0.0.1)
|
60
|
+
multi_json (1.7.2)
|
61
|
+
polyglot (0.3.3)
|
62
|
+
pry (0.9.12.1)
|
63
|
+
coderay (~> 1.0.5)
|
64
|
+
method_source (~> 0.8)
|
65
|
+
slop (~> 3.4)
|
66
|
+
rack (1.4.5)
|
67
|
+
rack-cache (1.2)
|
68
|
+
rack (>= 0.4)
|
69
|
+
rack-ssl (1.3.3)
|
70
|
+
rack
|
71
|
+
rack-test (0.6.2)
|
72
|
+
rack (>= 1.0)
|
73
|
+
rails (3.2.13)
|
74
|
+
actionmailer (= 3.2.13)
|
75
|
+
actionpack (= 3.2.13)
|
76
|
+
activerecord (= 3.2.13)
|
77
|
+
activeresource (= 3.2.13)
|
78
|
+
activesupport (= 3.2.13)
|
79
|
+
bundler (~> 1.0)
|
80
|
+
railties (= 3.2.13)
|
81
|
+
railties (3.2.13)
|
82
|
+
actionpack (= 3.2.13)
|
83
|
+
activesupport (= 3.2.13)
|
84
|
+
rack-ssl (~> 1.3.2)
|
85
|
+
rake (>= 0.8.7)
|
86
|
+
rdoc (~> 3.4)
|
87
|
+
thor (>= 0.14.6, < 2.0)
|
88
|
+
rake (10.0.4)
|
89
|
+
rdoc (3.12.2)
|
90
|
+
json (~> 1.4)
|
91
|
+
redcarpet (2.2.2)
|
92
|
+
slim (1.0.1)
|
93
|
+
temple (~> 0.3.0)
|
94
|
+
tilt (~> 1.2)
|
95
|
+
slop (3.4.4)
|
96
|
+
sprockets (2.2.2)
|
97
|
+
hike (~> 1.2)
|
98
|
+
multi_json (~> 1.0)
|
99
|
+
rack (~> 1.0)
|
100
|
+
tilt (~> 1.1, != 1.3.0)
|
101
|
+
temple (0.3.5)
|
102
|
+
thor (0.18.1)
|
103
|
+
tilt (1.4.0)
|
104
|
+
treetop (1.4.12)
|
105
|
+
polyglot
|
106
|
+
polyglot (>= 0.3.1)
|
107
|
+
tzinfo (0.3.37)
|
108
|
+
yard (0.8.6.1)
|
109
|
+
|
110
|
+
PLATFORMS
|
111
|
+
ruby
|
112
|
+
|
113
|
+
DEPENDENCIES
|
114
|
+
appraisal
|
115
|
+
haml
|
116
|
+
keynote!
|
117
|
+
minitest
|
118
|
+
mocha (~> 0.13.3)
|
119
|
+
pry
|
120
|
+
rails (= 3.2.13)
|
121
|
+
redcarpet
|
122
|
+
slim
|
123
|
+
yard
|