applinks 0.0.4 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{LICENSE.txt → MIT-LICENSE} +1 -4
- data/README.rdoc +3 -0
- data/Rakefile +34 -1
- data/app/controllers/applinks/application_controller.rb +4 -0
- data/app/helpers/applinks/application_helper.rb +24 -0
- data/app/views/applinks/_head.html.erb +17 -0
- data/config/initializers/applinks.rb +3 -0
- data/lib/applinks/builder.rb +43 -0
- data/lib/applinks/config.rb +10 -0
- data/lib/applinks/engine.rb +5 -0
- data/lib/applinks/version.rb +2 -5
- data/lib/applinks.rb +3 -5
- data/lib/tasks/applinks_tasks.rake +4 -0
- data/test/applinks_test.rb +7 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +29 -0
- data/test/dummy/config/environments/production.rb +80 -0
- data/test/dummy/config/environments/test.rb +36 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +12 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/public/404.html +58 -0
- data/test/dummy/public/422.html +58 -0
- data/test/dummy/public/500.html +57 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/test_helper.rb +15 -0
- metadata +86 -136
- data/.gitignore +0 -4
- data/.rspec +0 -4
- data/.travis.yml +0 -10
- data/Gemfile +0 -4
- data/README.md +0 -31
- data/applinks.gemspec +0 -36
- data/lib/applinks/helper.rb +0 -37
- data/npm-debug.log +0 -21
- data/rspec_output.txt +0 -95
- data/spec/applinks/applink_spec.rb +0 -5
- data/spec/spec_helper.rb +0 -15
- /data/{app/views/applinks/head.html.erb → test/dummy/public/favicon.ico} +0 -0
data/rspec_output.txt
DELETED
@@ -1,95 +0,0 @@
|
|
1
|
-
Run options: include {:focus=>true}
|
2
|
-
|
3
|
-
All examples were filtered out; ignoring {:focus=>true}
|
4
|
-
|
5
|
-
OMDBGateway::Gateway
|
6
|
-
With invalid Endpoint URI
|
7
|
-
should have the correct API endpoint
|
8
|
-
with a movie that exists
|
9
|
-
#success
|
10
|
-
should note failure
|
11
|
-
#error_message
|
12
|
-
should note failure
|
13
|
-
With invalid Endpoint URI
|
14
|
-
should have the correct API endpoint
|
15
|
-
with a movie that exists
|
16
|
-
#success
|
17
|
-
should note failure
|
18
|
-
#error_message
|
19
|
-
should note failure
|
20
|
-
With Valid Endpoint
|
21
|
-
should have the correct API endpoint
|
22
|
-
#title_search
|
23
|
-
with a movie that exists
|
24
|
-
should return a hash of movie attributes
|
25
|
-
should contain a title
|
26
|
-
should have tomatoes
|
27
|
-
should contain a not have tomatoes
|
28
|
-
should have a longer plot
|
29
|
-
with the year parameter
|
30
|
-
should not be the same title
|
31
|
-
with the plot parameter
|
32
|
-
should have different plots
|
33
|
-
with a movie that doesnt exist
|
34
|
-
should return a hash
|
35
|
-
should return a hash with a false response
|
36
|
-
should return a hash with an error message
|
37
|
-
#find_by_id
|
38
|
-
with a title that exists
|
39
|
-
should return a hash of movie attributes
|
40
|
-
should contain a title
|
41
|
-
with a movie that does not exist
|
42
|
-
should return nil
|
43
|
-
#free_search
|
44
|
-
with search results
|
45
|
-
should return an ResponseWrapper
|
46
|
-
should return an array with hash contents
|
47
|
-
with a single search result
|
48
|
-
should return an array
|
49
|
-
should return an array with 1 element
|
50
|
-
should have a title
|
51
|
-
with no search results
|
52
|
-
should return an ResponseWrapper
|
53
|
-
should show app failed
|
54
|
-
Allows Faraday Connection Customization
|
55
|
-
should call the config block with a connection
|
56
|
-
|
57
|
-
OMDBGateway::ResponseWrapper
|
58
|
-
#error_message
|
59
|
-
should be nil
|
60
|
-
should be 'X500 Error'
|
61
|
-
should be 'X500 Error'
|
62
|
-
#success?
|
63
|
-
should be true
|
64
|
-
should be true
|
65
|
-
should be false
|
66
|
-
#as_hash
|
67
|
-
should be {}
|
68
|
-
should be {}
|
69
|
-
should be {}
|
70
|
-
should be {'a' => 'A'}
|
71
|
-
#as_hash
|
72
|
-
should be []
|
73
|
-
should be []
|
74
|
-
should be []
|
75
|
-
should be []
|
76
|
-
should be [{'a' => 'A', 'b' => 'B'}]
|
77
|
-
#prune_hash
|
78
|
-
should be nil for empty array
|
79
|
-
should be 5
|
80
|
-
should not expose Error or Report
|
81
|
-
should be return hash element
|
82
|
-
should be nil for any array
|
83
|
-
#prune_array
|
84
|
-
should be nil for empty array
|
85
|
-
should be default 700
|
86
|
-
should not expose Error or Report
|
87
|
-
should not return hash element but the default
|
88
|
-
should be {'a' => 'A', 'b' => 'B'} for any array
|
89
|
-
should be default (500) for out of bound index for any array
|
90
|
-
#array_first
|
91
|
-
should be nil for empty array
|
92
|
-
should be {'a' => 'A', 'b' => 'B'} for any array
|
93
|
-
|
94
|
-
Finished in 0.24853 seconds
|
95
|
-
56 examples, 0 failures
|
data/spec/spec_helper.rb
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'applinks'
|
2
|
-
require 'vcr'
|
3
|
-
|
4
|
-
VCR.configure do |c|
|
5
|
-
c.cassette_library_dir = 'fixtures/vcr_cassettes'
|
6
|
-
c.hook_into :webmock # or :fakeweb
|
7
|
-
c.default_cassette_options = { :record => :new_episodes }
|
8
|
-
c.configure_rspec_metadata!
|
9
|
-
end
|
10
|
-
|
11
|
-
RSpec.configure do |config|
|
12
|
-
config.treat_symbols_as_metadata_keys_with_true_values = true
|
13
|
-
config.run_all_when_everything_filtered = true
|
14
|
-
config.filter_run :focus
|
15
|
-
end
|
File without changes
|