kuva 0.0.5 → 0.1.0
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.
- checksums.yaml +5 -5
- data/Gemfile +11 -10
- data/app/assets/stylesheets/kuva/{base.css.sass → base.sass} +0 -0
- data/lib/kuva/version.rb +1 -1
- metadata +37 -280
- data/.coveralls.yml +0 -1
- data/.env.example +0 -4
- data/.gitignore +0 -14
- data/.rspec +0 -1
- data/.ruby-gemset +0 -1
- data/.ruby-version +0 -1
- data/.travis.yml +0 -12
- data/Gemfile.lock +0 -191
- data/MIT-LICENSE +0 -20
- data/kuva.gemspec +0 -26
- data/spec/controllers/kuva/application_controller_spec.rb +0 -42
- data/spec/controllers/kuva/photos_controller_spec.rb +0 -22
- data/spec/controllers/kuva/sets_controller_spec.rb +0 -51
- data/spec/dummy/README.md +0 -1
- data/spec/dummy/Rakefile +0 -6
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +0 -13
- data/spec/dummy/app/assets/stylesheets/application.css +0 -13
- data/spec/dummy/app/controllers/application_controller.rb +0 -5
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/models/.keep +0 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/spec/dummy/bin/bundle +0 -3
- data/spec/dummy/bin/rails +0 -4
- data/spec/dummy/bin/rake +0 -4
- data/spec/dummy/config.ru +0 -4
- data/spec/dummy/config/application.rb +0 -30
- data/spec/dummy/config/boot.rb +0 -5
- data/spec/dummy/config/database.yml +0 -25
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -29
- data/spec/dummy/config/environments/production.rb +0 -80
- data/spec/dummy/config/environments/test.rb +0 -39
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/dummy/config/initializers/inflections.rb +0 -16
- data/spec/dummy/config/initializers/kuva.rb +0 -29
- data/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/spec/dummy/config/initializers/secret_token.rb +0 -12
- data/spec/dummy/config/initializers/session_store.rb +0 -3
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy/config/locales/en.yml +0 -23
- data/spec/dummy/config/routes.rb +0 -4
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/public/404.html +0 -58
- data/spec/dummy/public/422.html +0 -58
- data/spec/dummy/public/500.html +0 -57
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/features/photo_spec.rb +0 -40
- data/spec/features/photoset_collection_spec.rb +0 -25
- data/spec/features/photoset_spec.rb +0 -42
- data/spec/generators/kuva/assets_generator_spec.rb +0 -30
- data/spec/generators/kuva/install_generator_spec.rb +0 -63
- data/spec/generators/kuva/views_generator_spec.rb +0 -37
- data/spec/helpers/kuva/application_helper_spec.rb +0 -26
- data/spec/kuva/authorizer_spec.rb +0 -83
- data/spec/kuva/elements/photo_spec.rb +0 -76
- data/spec/kuva/elements/photoset_collection_spec.rb +0 -42
- data/spec/kuva/elements/photoset_spec.rb +0 -106
- data/spec/kuva/elements/url_info_spec.rb +0 -25
- data/spec/kuva_spec.rb +0 -81
- data/spec/spec_helper.rb +0 -68
- data/spec/support/vcr/cassettes/Kuva_ApplicationController/configuring_Kuva/sets_the_API_key.yml +0 -160
- data/spec/support/vcr/cassettes/Kuva_ApplicationController/configuring_Kuva/sets_the_access_secret.yml +0 -160
- data/spec/support/vcr/cassettes/Kuva_ApplicationController/configuring_Kuva/sets_the_access_token.yml +0 -160
- data/spec/support/vcr/cassettes/Kuva_ApplicationHelper/_breadcrumbs_for/when_the_current_page_is_NOT_the_set_page/creates_a_breadcrumb_with_the_set_URL.yml +0 -65
- data/spec/support/vcr/cassettes/Kuva_ApplicationHelper/_breadcrumbs_for/when_the_current_page_is_the_set_page/creates_a_breadcrumb_without_the_set_URL.yml +0 -222
- data/spec/support/vcr/cassettes/Kuva_Elements_Photo/_find/fetches_the_photo_from_Flickr_specified_by_id.yml +0 -95
- data/spec/support/vcr/cassettes/Kuva_Elements_Photo/_find/instantiates_a_new_Kuva_Elements_Photo_object.yml +0 -252
- data/spec/support/vcr/cassettes/Kuva_Elements_Photo/_initialize/does_NOT_set_the_is_primary_boolean.yml +0 -252
- data/spec/support/vcr/cassettes/Kuva_Elements_Photo/_initialize/returns_itself.yml +0 -95
- data/spec/support/vcr/cassettes/Kuva_Elements_Photo/_initialize/saves_a_reference_to_the_description.yml +0 -95
- data/spec/support/vcr/cassettes/Kuva_Elements_Photo/_initialize/saves_a_reference_to_the_farm.yml +0 -95
- data/spec/support/vcr/cassettes/Kuva_Elements_Photo/_initialize/saves_a_reference_to_the_id.yml +0 -95
- data/spec/support/vcr/cassettes/Kuva_Elements_Photo/_initialize/saves_a_reference_to_the_secret.yml +0 -95
- data/spec/support/vcr/cassettes/Kuva_Elements_Photo/_initialize/saves_a_reference_to_the_server.yml +0 -252
- data/spec/support/vcr/cassettes/Kuva_Elements_Photo/_initialize/saves_a_reference_to_the_title.yml +0 -95
- data/spec/support/vcr/cassettes/Kuva_Elements_Photo/image_URLs/generates_an_image_URL_for_a_default_sized_medium_image.yml +0 -95
- data/spec/support/vcr/cassettes/Kuva_Elements_Photo/image_URLs/generates_an_image_URL_for_a_n-sized_small_320_image.yml +0 -252
- data/spec/support/vcr/cassettes/Kuva_Elements_Photo/image_URLs/instantiates_a_new_URL_info_object_to_create_image_URLs.yml +0 -95
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_find/fetches_the_photoset_from_Flickr_specified_by_id.yml +0 -65
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_find/instantiates_a_new_Kuva_Elements_Photoset_object.yml +0 -65
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_image_url/generates_an_image_URL_for_a_large_square_image.yml +0 -65
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_image_url/instantiates_a_new_URL_info_object_to_create_an_image_URL.yml +0 -222
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_initialize/returns_itself.yml +0 -65
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_initialize/saves_a_reference_to_the_created_at_date.yml +0 -65
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_initialize/saves_a_reference_to_the_description.yml +0 -65
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_initialize/saves_a_reference_to_the_farm.yml +0 -65
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_initialize/saves_a_reference_to_the_id.yml +0 -65
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_initialize/saves_a_reference_to_the_number_of_photos.yml +0 -65
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_initialize/saves_a_reference_to_the_number_of_views.yml +0 -65
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_initialize/saves_a_reference_to_the_primary_id.yml +0 -222
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_initialize/saves_a_reference_to_the_secret.yml +0 -65
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_initialize/saves_a_reference_to_the_server.yml +0 -65
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_initialize/saves_a_reference_to_the_title.yml +0 -222
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_initialize/saves_a_reference_to_the_updated_at_date.yml +0 -65
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_with_photos/returns_an_array.yml +0 -162
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_with_photos/returns_an_array_with_the_size_specified_by_number_of_photos.yml +0 -162
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_with_photos/wraps_the_photos_into_a_Kuva_Elements_Photo_element.yml +0 -319
- data/spec/support/vcr/cassettes/Kuva_Elements_PhotosetCollection/_photosets/retrieves_all_photosets.yml +0 -2761
- data/spec/support/vcr/cassettes/Kuva_Elements_PhotosetCollection/_photosets/returns_an_array.yml +0 -2918
- data/spec/support/vcr/cassettes/Kuva_Elements_PhotosetCollection/_photosets/wraps_the_photosets_into_a_Kuva_Elements_Photoset_element.yml +0 -2761
- data/spec/support/vcr/cassettes/Kuva_Elements_PhotosetCollection/_retrieve/fetches_all_photosets_from_Flickr.yml +0 -2918
- data/spec/support/vcr/cassettes/Kuva_Elements_PhotosetCollection/_retrieve/instantiates_a_new_Kuva_Elements_PhotosetCollection_object.yml +0 -2761
- data/spec/support/vcr/cassettes/Kuva_PhotosController/_show/assigns_the_photo.yml +0 -314
- data/spec/support/vcr/cassettes/Kuva_PhotosController/_show/finds_the_photo.yml +0 -157
- data/spec/support/vcr/cassettes/Kuva_SetsController/_index/assigns_the_photoset_collection_with_photosets.yml +0 -2761
- data/spec/support/vcr/cassettes/Kuva_SetsController/_index/knows_its_type.yml +0 -2918
- data/spec/support/vcr/cassettes/Kuva_SetsController/_index/retrieves_the_entire_photoset_collection.yml +0 -160
- data/spec/support/vcr/cassettes/Kuva_SetsController/_show/assigns_the_photos_of_the_specified_photoset.yml +0 -2858
- data/spec/support/vcr/cassettes/Kuva_SetsController/_show/finds_the_specified_photoset_within_the_entire_photoset_collection.yml +0 -2858
- data/spec/support/vcr/cassettes/Kuva_SetsController/_show/knows_its_type.yml +0 -2858
- data/spec/support/vcr/cassettes/photo/navigating_back_to_the_photoset_page.yml +0 -3169
- data/spec/support/vcr/cassettes/photo/viewing_the_first_photo_of_the_photoset.yml +0 -157
- data/spec/support/vcr/cassettes/photoset/navigating_back_to_the_photoset_collection_page.yml +0 -5616
- data/spec/support/vcr/cassettes/photoset/navigating_to_the_page_with_details_of_the_first_photo.yml +0 -3012
- data/spec/support/vcr/cassettes/photoset/viewing_the_first_photo_of_the_photoset.yml +0 -314
- data/spec/support/vcr/cassettes/photoset/viewing_the_first_photoset_of_the_photoset_collection.yml +0 -3015
- data/spec/support/vcr/cassettes/photoset_collection/navigating_to_the_page_with_photos_of_the_first_photoset.yml +0 -5616
- data/spec/support/vcr/cassettes/photoset_collection/viewing_the_photoset_collection.yml +0 -2761
- data/spec/support/vcr/vcr.rb +0 -17
data/.coveralls.yml
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
service_name: travis-ci
|
data/.env.example
DELETED
data/.gitignore
DELETED
data/.rspec
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
--color
|
data/.ruby-gemset
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
kuva
|
data/.ruby-version
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ruby-2.0.0-p353
|
data/.travis.yml
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
language: ruby
|
|
2
|
-
script: bundle exec rake
|
|
3
|
-
rvm:
|
|
4
|
-
- 2.1.0
|
|
5
|
-
- 2.0.0
|
|
6
|
-
- 1.9.3
|
|
7
|
-
env:
|
|
8
|
-
global:
|
|
9
|
-
- secure: bnOruf8nDL/RW73YuNdwFsk0Mp0lKc+cu2tYQj95oYluDVaE2HbHXGUsQ0h3xJXBPwZhQTm5eSqdIlAi9WBau8XZ+yAzMFOtF2MhiZYChS7ZoSHBFZMwaL0aWFKC6R50niNHWXhvvg+63hDvMuG+5VWQobeIjac7WWriiSuAvSE=
|
|
10
|
-
- secure: Rqtp1maxRYXjKZ3yltm4hFsnb21NY8kB76h9CqkShCTrgxQCcEEwvyIMCbO7TZXUKskuV1h9U++3LOs/66a5FtTHDihnhlRbgRVodUcC5y7oIe9A8WJhTVg1R0+vOj5itn7CMu64Ne70dF+OSR1lPi6FcEKK2ktN3YAoQ7wM830=
|
|
11
|
-
- secure: Xlw44/uFPjcHVj9MULZjMeHzoJWZm5GL3Yd5L6D6jvAGbxh2PtWe4IjQsWcBXzaRAUZ3egieZOFiJMm7f8BCyfXfRhwImONrYpHWkS1AdO1d/9eK+/OaHIYVrFcKZQSuP0PIacEW6+nSoLjug8TbcdfE7BbVgkbx8iXY7Wzh3fw=
|
|
12
|
-
- secure: dyg7H8qxQGJKQj7gyVaozn66Fy20Pi+7JBc9bssEUDs6UnLZSjhQRtC08hvN6ds+v1qOwmUihJUVWFsW74bTx9ZZJJk9YBaI4n7Dkh+m3+VnX/idUAHiaF7itjbXkHKmenNyyV5yHcjQsM48lF39CJxexjqv6BkBCgItUJcebMo=
|
data/Gemfile.lock
DELETED
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
kuva (0.0.5)
|
|
5
|
-
coffee-rails (~> 4.0.0)
|
|
6
|
-
compass-rails
|
|
7
|
-
flickraw
|
|
8
|
-
haml
|
|
9
|
-
jquery-rails
|
|
10
|
-
rails (~> 4.1, >= 4.1.1)
|
|
11
|
-
sass-rails (~> 4.0.0)
|
|
12
|
-
|
|
13
|
-
GEM
|
|
14
|
-
remote: https://rubygems.org/
|
|
15
|
-
specs:
|
|
16
|
-
actionmailer (4.1.1)
|
|
17
|
-
actionpack (= 4.1.1)
|
|
18
|
-
actionview (= 4.1.1)
|
|
19
|
-
mail (~> 2.5.4)
|
|
20
|
-
actionpack (4.1.1)
|
|
21
|
-
actionview (= 4.1.1)
|
|
22
|
-
activesupport (= 4.1.1)
|
|
23
|
-
rack (~> 1.5.2)
|
|
24
|
-
rack-test (~> 0.6.2)
|
|
25
|
-
actionview (4.1.1)
|
|
26
|
-
activesupport (= 4.1.1)
|
|
27
|
-
builder (~> 3.1)
|
|
28
|
-
erubis (~> 2.7.0)
|
|
29
|
-
activemodel (4.1.1)
|
|
30
|
-
activesupport (= 4.1.1)
|
|
31
|
-
builder (~> 3.1)
|
|
32
|
-
activerecord (4.1.1)
|
|
33
|
-
activemodel (= 4.1.1)
|
|
34
|
-
activesupport (= 4.1.1)
|
|
35
|
-
arel (~> 5.0.0)
|
|
36
|
-
activesupport (4.1.1)
|
|
37
|
-
i18n (~> 0.6, >= 0.6.9)
|
|
38
|
-
json (~> 1.7, >= 1.7.7)
|
|
39
|
-
minitest (~> 5.1)
|
|
40
|
-
thread_safe (~> 0.1)
|
|
41
|
-
tzinfo (~> 1.1)
|
|
42
|
-
addressable (2.3.6)
|
|
43
|
-
ammeter (1.0.0)
|
|
44
|
-
activesupport (>= 3.0)
|
|
45
|
-
railties (>= 3.0)
|
|
46
|
-
rspec-rails (>= 2.2)
|
|
47
|
-
arel (5.0.1.20140414130214)
|
|
48
|
-
builder (3.2.2)
|
|
49
|
-
capybara (2.2.1)
|
|
50
|
-
mime-types (>= 1.16)
|
|
51
|
-
nokogiri (>= 1.3.3)
|
|
52
|
-
rack (>= 1.0.0)
|
|
53
|
-
rack-test (>= 0.5.4)
|
|
54
|
-
xpath (~> 2.0)
|
|
55
|
-
chunky_png (1.3.0)
|
|
56
|
-
coffee-rails (4.0.1)
|
|
57
|
-
coffee-script (>= 2.2.0)
|
|
58
|
-
railties (>= 4.0.0, < 5.0)
|
|
59
|
-
coffee-script (2.2.0)
|
|
60
|
-
coffee-script-source
|
|
61
|
-
execjs
|
|
62
|
-
coffee-script-source (1.7.0)
|
|
63
|
-
compass (0.12.6)
|
|
64
|
-
chunky_png (~> 1.2)
|
|
65
|
-
fssm (>= 0.2.7)
|
|
66
|
-
sass (~> 3.2.19)
|
|
67
|
-
compass-rails (1.1.7)
|
|
68
|
-
compass (>= 0.12.2)
|
|
69
|
-
sprockets (<= 2.11.0)
|
|
70
|
-
coveralls (0.7.0)
|
|
71
|
-
multi_json (~> 1.3)
|
|
72
|
-
rest-client
|
|
73
|
-
simplecov (>= 0.7)
|
|
74
|
-
term-ansicolor
|
|
75
|
-
thor
|
|
76
|
-
crack (0.4.2)
|
|
77
|
-
safe_yaml (~> 1.0.0)
|
|
78
|
-
diff-lcs (1.2.5)
|
|
79
|
-
docile (1.1.3)
|
|
80
|
-
dotenv (0.10.0)
|
|
81
|
-
dotenv-rails (0.10.0)
|
|
82
|
-
dotenv (= 0.10.0)
|
|
83
|
-
erubis (2.7.0)
|
|
84
|
-
execjs (2.0.2)
|
|
85
|
-
flickraw (0.9.8)
|
|
86
|
-
fssm (0.2.10)
|
|
87
|
-
haml (4.0.5)
|
|
88
|
-
tilt
|
|
89
|
-
hike (1.2.3)
|
|
90
|
-
i18n (0.6.9)
|
|
91
|
-
jquery-rails (3.1.0)
|
|
92
|
-
railties (>= 3.0, < 5.0)
|
|
93
|
-
thor (>= 0.14, < 2.0)
|
|
94
|
-
json (1.8.1)
|
|
95
|
-
mail (2.5.4)
|
|
96
|
-
mime-types (~> 1.16)
|
|
97
|
-
treetop (~> 1.4.8)
|
|
98
|
-
mime-types (1.25.1)
|
|
99
|
-
mini_portile (0.5.3)
|
|
100
|
-
minitest (5.3.4)
|
|
101
|
-
multi_json (1.10.1)
|
|
102
|
-
nokogiri (1.6.1)
|
|
103
|
-
mini_portile (~> 0.5.0)
|
|
104
|
-
polyglot (0.3.5)
|
|
105
|
-
rack (1.5.2)
|
|
106
|
-
rack-test (0.6.2)
|
|
107
|
-
rack (>= 1.0)
|
|
108
|
-
rails (4.1.1)
|
|
109
|
-
actionmailer (= 4.1.1)
|
|
110
|
-
actionpack (= 4.1.1)
|
|
111
|
-
actionview (= 4.1.1)
|
|
112
|
-
activemodel (= 4.1.1)
|
|
113
|
-
activerecord (= 4.1.1)
|
|
114
|
-
activesupport (= 4.1.1)
|
|
115
|
-
bundler (>= 1.3.0, < 2.0)
|
|
116
|
-
railties (= 4.1.1)
|
|
117
|
-
sprockets-rails (~> 2.0)
|
|
118
|
-
railties (4.1.1)
|
|
119
|
-
actionpack (= 4.1.1)
|
|
120
|
-
activesupport (= 4.1.1)
|
|
121
|
-
rake (>= 0.8.7)
|
|
122
|
-
thor (>= 0.18.1, < 2.0)
|
|
123
|
-
rake (10.3.2)
|
|
124
|
-
rest-client (1.6.7)
|
|
125
|
-
mime-types (>= 1.16)
|
|
126
|
-
rspec-core (2.14.8)
|
|
127
|
-
rspec-expectations (2.14.5)
|
|
128
|
-
diff-lcs (>= 1.1.3, < 2.0)
|
|
129
|
-
rspec-mocks (2.14.6)
|
|
130
|
-
rspec-rails (2.14.2)
|
|
131
|
-
actionpack (>= 3.0)
|
|
132
|
-
activemodel (>= 3.0)
|
|
133
|
-
activesupport (>= 3.0)
|
|
134
|
-
railties (>= 3.0)
|
|
135
|
-
rspec-core (~> 2.14.0)
|
|
136
|
-
rspec-expectations (~> 2.14.0)
|
|
137
|
-
rspec-mocks (~> 2.14.0)
|
|
138
|
-
safe_yaml (1.0.2)
|
|
139
|
-
sass (3.2.19)
|
|
140
|
-
sass-rails (4.0.3)
|
|
141
|
-
railties (>= 4.0.0, < 5.0)
|
|
142
|
-
sass (~> 3.2.0)
|
|
143
|
-
sprockets (~> 2.8, <= 2.11.0)
|
|
144
|
-
sprockets-rails (~> 2.0)
|
|
145
|
-
simplecov (0.8.2)
|
|
146
|
-
docile (~> 1.1.0)
|
|
147
|
-
multi_json
|
|
148
|
-
simplecov-html (~> 0.8.0)
|
|
149
|
-
simplecov-html (0.8.0)
|
|
150
|
-
sprockets (2.11.0)
|
|
151
|
-
hike (~> 1.2)
|
|
152
|
-
multi_json (~> 1.0)
|
|
153
|
-
rack (~> 1.0)
|
|
154
|
-
tilt (~> 1.1, != 1.3.0)
|
|
155
|
-
sprockets-rails (2.1.3)
|
|
156
|
-
actionpack (>= 3.0)
|
|
157
|
-
activesupport (>= 3.0)
|
|
158
|
-
sprockets (~> 2.8)
|
|
159
|
-
sqlite3 (1.3.9)
|
|
160
|
-
term-ansicolor (1.3.0)
|
|
161
|
-
tins (~> 1.0)
|
|
162
|
-
thor (0.19.1)
|
|
163
|
-
thread_safe (0.3.4)
|
|
164
|
-
tilt (1.4.1)
|
|
165
|
-
tins (1.1.0)
|
|
166
|
-
treetop (1.4.15)
|
|
167
|
-
polyglot
|
|
168
|
-
polyglot (>= 0.3.1)
|
|
169
|
-
tzinfo (1.2.1)
|
|
170
|
-
thread_safe (~> 0.1)
|
|
171
|
-
vcr (2.9.0)
|
|
172
|
-
webmock (1.17.3)
|
|
173
|
-
addressable (>= 2.2.7)
|
|
174
|
-
crack (>= 0.3.2)
|
|
175
|
-
xpath (2.0.0)
|
|
176
|
-
nokogiri (~> 1.3)
|
|
177
|
-
|
|
178
|
-
PLATFORMS
|
|
179
|
-
ruby
|
|
180
|
-
|
|
181
|
-
DEPENDENCIES
|
|
182
|
-
ammeter
|
|
183
|
-
capybara
|
|
184
|
-
coveralls
|
|
185
|
-
dotenv-rails
|
|
186
|
-
kuva!
|
|
187
|
-
rspec-rails
|
|
188
|
-
simplecov
|
|
189
|
-
sqlite3
|
|
190
|
-
vcr
|
|
191
|
-
webmock
|
data/MIT-LICENSE
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
Copyright 2014 Kevin Tuhumury
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
-
a copy of this software and associated documentation files (the
|
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
-
the following conditions:
|
|
10
|
-
|
|
11
|
-
The above copyright notice and this permission notice shall be
|
|
12
|
-
included in all copies or substantial portions of the Software.
|
|
13
|
-
|
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/kuva.gemspec
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
$:.push File.expand_path("../lib", __FILE__)
|
|
2
|
-
|
|
3
|
-
# Maintain your gem's version:
|
|
4
|
-
require "kuva/version"
|
|
5
|
-
|
|
6
|
-
# Describe your gem and declare its dependencies:
|
|
7
|
-
Gem::Specification.new do |gem|
|
|
8
|
-
gem.name = "kuva"
|
|
9
|
-
gem.version = Kuva::VERSION
|
|
10
|
-
gem.authors = ["Kevin Tuhumury"]
|
|
11
|
-
gem.email = ["kevin.tuhumury@gmail.com"]
|
|
12
|
-
gem.homepage = "http://github.com/kevintuhumury/kuva"
|
|
13
|
-
gem.summary = "A Flickr gallery which can be mounted as a Rails Engine."
|
|
14
|
-
gem.description = "This Rails Engine provides a Flickr gallery for use in your own Rails project."
|
|
15
|
-
|
|
16
|
-
gem.files = `git ls-files`.split("\n")
|
|
17
|
-
gem.test_files = `git ls-files -- spec/**/*`.split("\n")
|
|
18
|
-
|
|
19
|
-
gem.add_dependency "rails", "~> 4.1", ">= 4.1.1"
|
|
20
|
-
gem.add_dependency "flickraw"
|
|
21
|
-
gem.add_dependency "haml"
|
|
22
|
-
gem.add_dependency "sass-rails", "~> 4.0.0"
|
|
23
|
-
gem.add_dependency "coffee-rails", "~> 4.0.0"
|
|
24
|
-
gem.add_dependency "jquery-rails"
|
|
25
|
-
gem.add_dependency "compass-rails"
|
|
26
|
-
end
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
require "spec_helper"
|
|
2
|
-
|
|
3
|
-
module Kuva
|
|
4
|
-
describe ApplicationController do
|
|
5
|
-
controller(ApplicationController) do
|
|
6
|
-
def index
|
|
7
|
-
render text: "testing before_action with anonymous controller"
|
|
8
|
-
end
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
context "configuring Kuva", :vcr do
|
|
12
|
-
it "sets the API key" do
|
|
13
|
-
allow(Kuva).to receive(:api_key).and_return "<api_key>"
|
|
14
|
-
get :index
|
|
15
|
-
|
|
16
|
-
expect(FlickRaw.api_key).to eq "<api_key>"
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
it "sets the shared secret" do
|
|
20
|
-
allow(Kuva).to receive(:shared_secret).and_return "<shared_secret>"
|
|
21
|
-
get :index
|
|
22
|
-
|
|
23
|
-
expect(FlickRaw.shared_secret).to eq "<shared_secret>"
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
it "sets the access token" do
|
|
27
|
-
allow(Kuva).to receive(:access_token).and_return "<access_token>"
|
|
28
|
-
get :index
|
|
29
|
-
|
|
30
|
-
expect(flickr.access_token).to eq "<access_token>"
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
it "sets the access secret" do
|
|
34
|
-
allow(Kuva).to receive(:access_secret).and_return "<access_secret>"
|
|
35
|
-
get :index
|
|
36
|
-
|
|
37
|
-
expect(flickr.access_secret).to eq "<access_secret>"
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
end
|
|
42
|
-
end
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
require "spec_helper"
|
|
2
|
-
|
|
3
|
-
module Kuva
|
|
4
|
-
describe PhotosController, :vcr do
|
|
5
|
-
let(:view_photo) { get :show, id: photo_id, set_id: "72157632367381040", use_route: :kuva }
|
|
6
|
-
|
|
7
|
-
let(:photo_id) { "8317914535" }
|
|
8
|
-
let(:photo) { assigns :photo }
|
|
9
|
-
|
|
10
|
-
describe "#show" do
|
|
11
|
-
it "assigns the photo" do
|
|
12
|
-
view_photo
|
|
13
|
-
expect(photo).to be_a Kuva::Elements::Photo
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
it "finds the photo" do
|
|
17
|
-
expect(Kuva::Elements::Photo).to receive(:find).with(photo_id).and_call_original
|
|
18
|
-
view_photo
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
end
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
require "spec_helper"
|
|
2
|
-
|
|
3
|
-
module Kuva
|
|
4
|
-
describe SetsController, :vcr do
|
|
5
|
-
describe "#index" do
|
|
6
|
-
let(:view_index) { get :index, use_route: :kuva }
|
|
7
|
-
|
|
8
|
-
let(:photosets) { assigns :photosets }
|
|
9
|
-
|
|
10
|
-
it "knows its type" do
|
|
11
|
-
view_index
|
|
12
|
-
expect(photosets).to be_an Array
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
it "assigns the photoset collection with photosets" do
|
|
16
|
-
view_index
|
|
17
|
-
photosets.each do |photoset|
|
|
18
|
-
expect(photoset).to be_a Kuva::Elements::Photoset
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
it "retrieves the entire photoset collection" do
|
|
23
|
-
expect(Kuva::Elements::PhotosetCollection).to receive :retrieve
|
|
24
|
-
view_index
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
|
|
28
|
-
describe "#show" do
|
|
29
|
-
let(:view_photoset) { get :show, id: "72157632367381040", use_route: :kuva }
|
|
30
|
-
|
|
31
|
-
let(:collection) { Kuva::Elements::PhotosetCollection.retrieve }
|
|
32
|
-
let(:photoset) { assigns :photoset }
|
|
33
|
-
let(:photos) { assigns :photos }
|
|
34
|
-
|
|
35
|
-
it "knows its type" do
|
|
36
|
-
view_photoset
|
|
37
|
-
expect(photoset).to be_a Kuva::Elements::Photoset
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
it "assigns the photos of the specified photoset" do
|
|
41
|
-
expect_any_instance_of(Kuva::Elements::Photoset).to receive(:with_photos).and_call_original
|
|
42
|
-
view_photoset
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
it "finds the specified photoset within the entire photoset collection" do
|
|
46
|
-
expect(Kuva::Elements::Photoset).to receive(:find).at_least(1).times.and_call_original
|
|
47
|
-
view_photoset
|
|
48
|
-
end
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
end
|
data/spec/dummy/README.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# Kuva
|
data/spec/dummy/Rakefile
DELETED
|
File without changes
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
|
2
|
-
// listed below.
|
|
3
|
-
//
|
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
|
5
|
-
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
|
6
|
-
//
|
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
|
8
|
-
// compiled file.
|
|
9
|
-
//
|
|
10
|
-
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
|
11
|
-
// about supported directives.
|
|
12
|
-
//
|
|
13
|
-
//= require_tree .
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
|
3
|
-
* listed below.
|
|
4
|
-
*
|
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
|
6
|
-
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
|
7
|
-
*
|
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
|
9
|
-
* compiled file, but it's generally better to create a new file per style scope.
|
|
10
|
-
*
|
|
11
|
-
*= require_self
|
|
12
|
-
*= require_tree .
|
|
13
|
-
*/
|