angular_sprinkles 0.0.4 → 0.0.5
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 +4 -4
- data/Gemfile +9 -8
- data/Gemfile.lock +41 -13
- data/LICENSE.txt +1 -1
- data/README.md +4 -38
- data/Rakefile +20 -37
- data/VERSION +1 -1
- data/angular_sprinkles.gemspec +104 -41
- data/app/assets/javascripts/angular_sprinkles.js.erb +1 -22
- data/lib/angular_sprinkles/constructor.rb +12 -0
- data/lib/angular_sprinkles/constructor_collection.rb +20 -0
- data/lib/angular_sprinkles/content_cache.rb +15 -0
- data/lib/angular_sprinkles/content_yielder.rb +19 -0
- data/lib/angular_sprinkles/context.rb +13 -0
- data/lib/angular_sprinkles/controller.rb +38 -65
- data/lib/angular_sprinkles/counter.rb +12 -0
- data/lib/angular_sprinkles/directive/attributes.rb +16 -0
- data/lib/angular_sprinkles/directive/input.rb +19 -0
- data/lib/angular_sprinkles/directive/name.rb +19 -0
- data/lib/angular_sprinkles/directive/options.rb +13 -0
- data/lib/angular_sprinkles/helpers/directive_helper.rb +7 -20
- data/lib/angular_sprinkles/helpers/service_helper.rb +14 -0
- data/lib/angular_sprinkles/helpers.rb +2 -7
- data/lib/angular_sprinkles/java_script.rb +55 -0
- data/lib/angular_sprinkles/key_generator.rb +14 -0
- data/lib/angular_sprinkles/model_decorator.rb +16 -0
- data/lib/angular_sprinkles/object_key_wrapper.rb +12 -0
- data/lib/angular_sprinkles.rb +20 -14
- data/spec/angular_sprinkles/constructor_collection_spec.rb +22 -0
- data/spec/angular_sprinkles/constructor_spec.rb +12 -0
- data/spec/angular_sprinkles/content_cache_spec.rb +15 -0
- data/spec/angular_sprinkles/content_yielder_spec.rb +45 -0
- data/spec/angular_sprinkles/context_spec.rb +22 -0
- data/spec/angular_sprinkles/counter_spec.rb +15 -0
- data/spec/angular_sprinkles/directive/attributes_spec.rb +24 -0
- data/spec/angular_sprinkles/directive/input_spec.rb +11 -0
- data/spec/angular_sprinkles/directive/name_spec.rb +11 -0
- data/spec/angular_sprinkles/directive/options_spec.rb +11 -0
- data/spec/angular_sprinkles/key_generator_spec.rb +17 -0
- data/spec/angular_sprinkles/model_decorator_spec.rb +24 -0
- data/spec/angular_sprinkles/object_key_wrapper_spec.rb +17 -0
- data/spec/controllers/test_controller_spec.rb +20 -0
- data/spec/dummy/.rspec +3 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +30 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/controllers/test_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- 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/models/test_model.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +15 -0
- data/spec/dummy/app/views/test/new.html.erb +9 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config/application.rb +29 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +82 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/initializers/assets.rb +8 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +57 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/migrate/20140908021353_create_test_models.rb +9 -0
- data/spec/dummy/db/schema.rb +22 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/features/javascript_spec.rb +26 -0
- data/spec/rails_helper.rb +21 -0
- data/spec/spec_helper.rb +82 -21
- metadata +103 -29
- data/.document +0 -5
- data/.rspec +0 -1
- data/lib/angular_sprinkles/data/bind.rb +0 -18
- data/lib/angular_sprinkles/decorators/bind_decorator.rb +0 -61
- data/lib/angular_sprinkles/decorators.rb +0 -6
- data/lib/angular_sprinkles/helpers/bind_helper.rb +0 -56
- data/lib/angular_sprinkles/helpers/bind_service_helper.rb +0 -27
- data/lib/angular_sprinkles/mixins/cache.rb +0 -11
- data/lib/angular_sprinkles/mixins/js_transformable.rb +0 -27
- data/lib/angular_sprinkles/variable_cache.rb +0 -19
- data/spec/controller_spec.rb +0 -74
- data/spec/data/bind_spec.rb +0 -11
- data/spec/decorators/bind_decorator_spec.rb +0 -56
- data/spec/helpers/bind_helper_spec.rb +0 -94
- data/spec/helpers/directive_helper_spec.rb +0 -66
- data/spec/mixins/js_transformable_spec.rb +0 -45
- data/spec/variable_cache_spec.rb +0 -57
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
|
2
|
+
|
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
|
5
|
+
|
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
|
9
|
+
|
|
10
|
+
# Make sure the secrets in this file are kept private
|
|
11
|
+
# if you're sharing your code publicly.
|
|
12
|
+
|
|
13
|
+
development:
|
|
14
|
+
secret_key_base: 020553dd42bf29249590327f7e007c4616b5a6050e81e09a83f33a744364de171f66291a097292c5197d984c8286075fb67d1a57bfe11cbdedee103cea33b2a2
|
|
15
|
+
|
|
16
|
+
test:
|
|
17
|
+
secret_key_base: af5df17dfcc791a202730a264b650e049c025652f19eff873d7a2daaa1cf98b467b04792b7433fe49fc877f93fdf94b05fcaba3722a2f9ac0e3afe97ce27014c
|
|
18
|
+
|
|
19
|
+
# Do not keep production secrets in the repository,
|
|
20
|
+
# instead read values from the environment.
|
|
21
|
+
production:
|
|
22
|
+
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# encoding: UTF-8
|
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
|
5
|
+
#
|
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
|
7
|
+
# database schema. If you need to create the application database on another
|
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
|
11
|
+
#
|
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
|
13
|
+
|
|
14
|
+
ActiveRecord::Schema.define(version: 20140908021353) do
|
|
15
|
+
|
|
16
|
+
create_table "test_models", force: true do |t|
|
|
17
|
+
t.string "name"
|
|
18
|
+
t.datetime "created_at"
|
|
19
|
+
t.datetime "updated_at"
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
end
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
6
|
+
<style>
|
|
7
|
+
body {
|
|
8
|
+
background-color: #EFEFEF;
|
|
9
|
+
color: #2E2F30;
|
|
10
|
+
text-align: center;
|
|
11
|
+
font-family: arial, sans-serif;
|
|
12
|
+
margin: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
div.dialog {
|
|
16
|
+
width: 95%;
|
|
17
|
+
max-width: 33em;
|
|
18
|
+
margin: 4em auto 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
div.dialog > div {
|
|
22
|
+
border: 1px solid #CCC;
|
|
23
|
+
border-right-color: #999;
|
|
24
|
+
border-left-color: #999;
|
|
25
|
+
border-bottom-color: #BBB;
|
|
26
|
+
border-top: #B00100 solid 4px;
|
|
27
|
+
border-top-left-radius: 9px;
|
|
28
|
+
border-top-right-radius: 9px;
|
|
29
|
+
background-color: white;
|
|
30
|
+
padding: 7px 12% 0;
|
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
h1 {
|
|
35
|
+
font-size: 100%;
|
|
36
|
+
color: #730E15;
|
|
37
|
+
line-height: 1.5em;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
div.dialog > p {
|
|
41
|
+
margin: 0 0 1em;
|
|
42
|
+
padding: 1em;
|
|
43
|
+
background-color: #F7F7F7;
|
|
44
|
+
border: 1px solid #CCC;
|
|
45
|
+
border-right-color: #999;
|
|
46
|
+
border-left-color: #999;
|
|
47
|
+
border-bottom-color: #999;
|
|
48
|
+
border-bottom-left-radius: 4px;
|
|
49
|
+
border-bottom-right-radius: 4px;
|
|
50
|
+
border-top-color: #DADADA;
|
|
51
|
+
color: #666;
|
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
53
|
+
}
|
|
54
|
+
</style>
|
|
55
|
+
</head>
|
|
56
|
+
|
|
57
|
+
<body>
|
|
58
|
+
<!-- This file lives in public/404.html -->
|
|
59
|
+
<div class="dialog">
|
|
60
|
+
<div>
|
|
61
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
|
62
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
|
63
|
+
</div>
|
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
|
65
|
+
</div>
|
|
66
|
+
</body>
|
|
67
|
+
</html>
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
6
|
+
<style>
|
|
7
|
+
body {
|
|
8
|
+
background-color: #EFEFEF;
|
|
9
|
+
color: #2E2F30;
|
|
10
|
+
text-align: center;
|
|
11
|
+
font-family: arial, sans-serif;
|
|
12
|
+
margin: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
div.dialog {
|
|
16
|
+
width: 95%;
|
|
17
|
+
max-width: 33em;
|
|
18
|
+
margin: 4em auto 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
div.dialog > div {
|
|
22
|
+
border: 1px solid #CCC;
|
|
23
|
+
border-right-color: #999;
|
|
24
|
+
border-left-color: #999;
|
|
25
|
+
border-bottom-color: #BBB;
|
|
26
|
+
border-top: #B00100 solid 4px;
|
|
27
|
+
border-top-left-radius: 9px;
|
|
28
|
+
border-top-right-radius: 9px;
|
|
29
|
+
background-color: white;
|
|
30
|
+
padding: 7px 12% 0;
|
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
h1 {
|
|
35
|
+
font-size: 100%;
|
|
36
|
+
color: #730E15;
|
|
37
|
+
line-height: 1.5em;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
div.dialog > p {
|
|
41
|
+
margin: 0 0 1em;
|
|
42
|
+
padding: 1em;
|
|
43
|
+
background-color: #F7F7F7;
|
|
44
|
+
border: 1px solid #CCC;
|
|
45
|
+
border-right-color: #999;
|
|
46
|
+
border-left-color: #999;
|
|
47
|
+
border-bottom-color: #999;
|
|
48
|
+
border-bottom-left-radius: 4px;
|
|
49
|
+
border-bottom-right-radius: 4px;
|
|
50
|
+
border-top-color: #DADADA;
|
|
51
|
+
color: #666;
|
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
53
|
+
}
|
|
54
|
+
</style>
|
|
55
|
+
</head>
|
|
56
|
+
|
|
57
|
+
<body>
|
|
58
|
+
<!-- This file lives in public/422.html -->
|
|
59
|
+
<div class="dialog">
|
|
60
|
+
<div>
|
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
|
63
|
+
</div>
|
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
|
65
|
+
</div>
|
|
66
|
+
</body>
|
|
67
|
+
</html>
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
6
|
+
<style>
|
|
7
|
+
body {
|
|
8
|
+
background-color: #EFEFEF;
|
|
9
|
+
color: #2E2F30;
|
|
10
|
+
text-align: center;
|
|
11
|
+
font-family: arial, sans-serif;
|
|
12
|
+
margin: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
div.dialog {
|
|
16
|
+
width: 95%;
|
|
17
|
+
max-width: 33em;
|
|
18
|
+
margin: 4em auto 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
div.dialog > div {
|
|
22
|
+
border: 1px solid #CCC;
|
|
23
|
+
border-right-color: #999;
|
|
24
|
+
border-left-color: #999;
|
|
25
|
+
border-bottom-color: #BBB;
|
|
26
|
+
border-top: #B00100 solid 4px;
|
|
27
|
+
border-top-left-radius: 9px;
|
|
28
|
+
border-top-right-radius: 9px;
|
|
29
|
+
background-color: white;
|
|
30
|
+
padding: 7px 12% 0;
|
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
h1 {
|
|
35
|
+
font-size: 100%;
|
|
36
|
+
color: #730E15;
|
|
37
|
+
line-height: 1.5em;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
div.dialog > p {
|
|
41
|
+
margin: 0 0 1em;
|
|
42
|
+
padding: 1em;
|
|
43
|
+
background-color: #F7F7F7;
|
|
44
|
+
border: 1px solid #CCC;
|
|
45
|
+
border-right-color: #999;
|
|
46
|
+
border-left-color: #999;
|
|
47
|
+
border-bottom-color: #999;
|
|
48
|
+
border-bottom-left-radius: 4px;
|
|
49
|
+
border-bottom-right-radius: 4px;
|
|
50
|
+
border-top-color: #DADADA;
|
|
51
|
+
color: #666;
|
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
53
|
+
}
|
|
54
|
+
</style>
|
|
55
|
+
</head>
|
|
56
|
+
|
|
57
|
+
<body>
|
|
58
|
+
<!-- This file lives in public/500.html -->
|
|
59
|
+
<div class="dialog">
|
|
60
|
+
<div>
|
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
|
62
|
+
</div>
|
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
|
64
|
+
</div>
|
|
65
|
+
</body>
|
|
66
|
+
</html>
|
|
File without changes
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
require "rails_helper"
|
|
2
|
+
|
|
3
|
+
# javascript specs are slow, so test everything at
|
|
4
|
+
# once on a single page
|
|
5
|
+
|
|
6
|
+
feature "javascript", js: true do
|
|
7
|
+
let(:name) { 'name' }
|
|
8
|
+
let(:new_name) { 'namenamename?' }
|
|
9
|
+
|
|
10
|
+
before do
|
|
11
|
+
visit root_path(name: name)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
it "should test all the things" do
|
|
15
|
+
expect(find("#data-binding-div")).to have_content(name)
|
|
16
|
+
expect(find("#bind-service-div")).to have_content("Hello #{name}")
|
|
17
|
+
expect(find("#directive-div h1 h2")).to have_content(name)
|
|
18
|
+
|
|
19
|
+
fill_in("Input", with: new_name)
|
|
20
|
+
|
|
21
|
+
expect(find("#data-binding-div")).to have_content(new_name)
|
|
22
|
+
expect(find("#bind-service-div")).to have_content("Hello #{new_name}")
|
|
23
|
+
|
|
24
|
+
expect(find("#directive-div h1 h2")).to have_content(new_name)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
ENV["RAILS_ENV"] ||= 'test'
|
|
2
|
+
|
|
3
|
+
require 'spec_helper'
|
|
4
|
+
require 'rspec/rails'
|
|
5
|
+
require 'capybara/rspec'
|
|
6
|
+
|
|
7
|
+
Capybara.register_driver :chrome do |app|
|
|
8
|
+
Capybara::Selenium::Driver.new(app,
|
|
9
|
+
:browser => :chrome
|
|
10
|
+
)
|
|
11
|
+
end
|
|
12
|
+
Capybara.javascript_driver = :chrome
|
|
13
|
+
|
|
14
|
+
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
|
|
15
|
+
ActiveRecord::Migration.maintain_test_schema!
|
|
16
|
+
|
|
17
|
+
RSpec.configure do |config|
|
|
18
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
|
19
|
+
config.use_transactional_fixtures = true
|
|
20
|
+
config.infer_spec_type_from_file_location!
|
|
21
|
+
end
|
data/spec/spec_helper.rb
CHANGED
|
@@ -1,30 +1,91 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
if ENV["COVERAGE"] == "true"
|
|
2
|
+
require "simplecov"
|
|
3
|
+
SimpleCov.start do
|
|
4
|
+
add_filter 'dummy'
|
|
5
|
+
add_filter 'rails_helper.rb'
|
|
6
|
+
add_filter 'spec_helper.rb'
|
|
6
7
|
end
|
|
7
8
|
end
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
# This file was generated by the `rails generate rspec:install` command. Conventionally, all
|
|
11
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
|
12
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause this
|
|
13
|
+
# file to always be loaded, without a need to explicitly require it in any files.
|
|
14
|
+
#
|
|
15
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
|
16
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
|
17
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
|
18
|
+
# individual file that may not need all of that loaded. Instead, make a
|
|
19
|
+
# separate helper file that requires this one and then use it only in the specs
|
|
20
|
+
# that actually need it.
|
|
21
|
+
#
|
|
22
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
|
23
|
+
# users commonly want.
|
|
24
|
+
#
|
|
25
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
|
13
26
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
end
|
|
17
|
-
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
18
|
-
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
|
27
|
+
# require File.expand_path("../../dummy/config/environment", __FILE__)
|
|
28
|
+
require File.expand_path("../dummy/config/environment", __FILE__)
|
|
19
29
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
30
|
+
RSpec.configure do |config|
|
|
31
|
+
# The settings below are suggested to provide a good initial experience
|
|
32
|
+
# with RSpec, but feel free to customize to your heart's content.
|
|
33
|
+
=begin
|
|
34
|
+
# These two settings work together to allow you to limit a spec run
|
|
35
|
+
# to individual examples or groups you care about by tagging them with
|
|
36
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
|
37
|
+
# get run.
|
|
38
|
+
config.filter_run :focus
|
|
39
|
+
config.run_all_when_everything_filtered = true
|
|
23
40
|
|
|
24
|
-
#
|
|
25
|
-
#
|
|
26
|
-
|
|
41
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
|
42
|
+
# file, and it's useful to allow more verbose output when running an
|
|
43
|
+
# individual spec file.
|
|
44
|
+
if config.files_to_run.one?
|
|
45
|
+
# Use the documentation formatter for detailed output,
|
|
46
|
+
# unless a formatter has already been configured
|
|
47
|
+
# (e.g. via a command-line flag).
|
|
48
|
+
config.default_formatter = 'doc'
|
|
49
|
+
end
|
|
27
50
|
|
|
28
|
-
|
|
51
|
+
# Print the 10 slowest examples and example groups at the
|
|
52
|
+
# end of the spec run, to help surface which specs are running
|
|
53
|
+
# particularly slow.
|
|
54
|
+
config.profile_examples = 10
|
|
29
55
|
|
|
56
|
+
# Run specs in random order to surface order dependencies. If you find an
|
|
57
|
+
# order dependency and want to debug it, you can fix the order by providing
|
|
58
|
+
# the seed, which is printed after each run.
|
|
59
|
+
# --seed 1234
|
|
60
|
+
config.order = :random
|
|
61
|
+
|
|
62
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
|
63
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
|
64
|
+
# test failures related to randomization by passing the same `--seed` value
|
|
65
|
+
# as the one that triggered the failure.
|
|
66
|
+
Kernel.srand config.seed
|
|
67
|
+
|
|
68
|
+
# rspec-expectations config goes here. You can use an alternate
|
|
69
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
|
70
|
+
# assertions if you prefer.
|
|
71
|
+
config.expect_with :rspec do |expectations|
|
|
72
|
+
# Enable only the newer, non-monkey-patching expect syntax.
|
|
73
|
+
# For more details, see:
|
|
74
|
+
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
|
75
|
+
expectations.syntax = :expect
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
|
79
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
|
80
|
+
config.mock_with :rspec do |mocks|
|
|
81
|
+
# Enable only the newer, non-monkey-patching expect syntax.
|
|
82
|
+
# For more details, see:
|
|
83
|
+
# - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
|
84
|
+
mocks.syntax = :expect
|
|
85
|
+
|
|
86
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
|
87
|
+
# a real object. This is generally recommended.
|
|
88
|
+
mocks.verify_partial_doubles = true
|
|
89
|
+
end
|
|
90
|
+
=end
|
|
30
91
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: angular_sprinkles
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gabe Scholz
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-09-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -25,7 +25,7 @@ dependencies:
|
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '0'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
|
-
name:
|
|
28
|
+
name: angularjs-rails
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - ">="
|
|
@@ -39,13 +39,13 @@ dependencies:
|
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '0'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
|
-
name:
|
|
42
|
+
name: sqlite3
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
45
|
- - ">="
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
47
|
version: '0'
|
|
48
|
-
type: :
|
|
48
|
+
type: :development
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
@@ -53,7 +53,7 @@ dependencies:
|
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '0'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: rspec
|
|
56
|
+
name: rspec-rails
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
59
|
- - ">="
|
|
@@ -67,7 +67,7 @@ dependencies:
|
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '0'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
|
-
name:
|
|
70
|
+
name: capybara
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
73
|
- - ">="
|
|
@@ -81,7 +81,7 @@ dependencies:
|
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
82
|
version: '0'
|
|
83
83
|
- !ruby/object:Gem::Dependency
|
|
84
|
-
name:
|
|
84
|
+
name: selenium-webdriver
|
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
|
86
86
|
requirements:
|
|
87
87
|
- - ">="
|
|
@@ -95,7 +95,21 @@ dependencies:
|
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
96
|
version: '0'
|
|
97
97
|
- !ruby/object:Gem::Dependency
|
|
98
|
-
name:
|
|
98
|
+
name: launchy
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - ">="
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: '0'
|
|
104
|
+
type: :development
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - ">="
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: '0'
|
|
111
|
+
- !ruby/object:Gem::Dependency
|
|
112
|
+
name: byebug
|
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
|
100
114
|
requirements:
|
|
101
115
|
- - ">="
|
|
@@ -123,7 +137,7 @@ dependencies:
|
|
|
123
137
|
- !ruby/object:Gem::Version
|
|
124
138
|
version: '0'
|
|
125
139
|
- !ruby/object:Gem::Dependency
|
|
126
|
-
name:
|
|
140
|
+
name: jeweler
|
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
|
128
142
|
requirements:
|
|
129
143
|
- - ">="
|
|
@@ -136,7 +150,7 @@ dependencies:
|
|
|
136
150
|
- - ">="
|
|
137
151
|
- !ruby/object:Gem::Version
|
|
138
152
|
version: '0'
|
|
139
|
-
description: Add
|
|
153
|
+
description: Add a few sprinkles of AngularJS to your Rails App
|
|
140
154
|
email: gabe@brewhouse.io
|
|
141
155
|
executables: []
|
|
142
156
|
extensions: []
|
|
@@ -144,8 +158,6 @@ extra_rdoc_files:
|
|
|
144
158
|
- LICENSE.txt
|
|
145
159
|
- README.md
|
|
146
160
|
files:
|
|
147
|
-
- ".document"
|
|
148
|
-
- ".rspec"
|
|
149
161
|
- Gemfile
|
|
150
162
|
- Gemfile.lock
|
|
151
163
|
- LICENSE.txt
|
|
@@ -155,27 +167,89 @@ files:
|
|
|
155
167
|
- angular_sprinkles.gemspec
|
|
156
168
|
- app/assets/javascripts/angular_sprinkles.js.erb
|
|
157
169
|
- lib/angular_sprinkles.rb
|
|
170
|
+
- lib/angular_sprinkles/constructor.rb
|
|
171
|
+
- lib/angular_sprinkles/constructor_collection.rb
|
|
172
|
+
- lib/angular_sprinkles/content_cache.rb
|
|
173
|
+
- lib/angular_sprinkles/content_yielder.rb
|
|
174
|
+
- lib/angular_sprinkles/context.rb
|
|
158
175
|
- lib/angular_sprinkles/controller.rb
|
|
159
|
-
- lib/angular_sprinkles/
|
|
160
|
-
- lib/angular_sprinkles/
|
|
161
|
-
- lib/angular_sprinkles/
|
|
176
|
+
- lib/angular_sprinkles/counter.rb
|
|
177
|
+
- lib/angular_sprinkles/directive/attributes.rb
|
|
178
|
+
- lib/angular_sprinkles/directive/input.rb
|
|
179
|
+
- lib/angular_sprinkles/directive/name.rb
|
|
180
|
+
- lib/angular_sprinkles/directive/options.rb
|
|
162
181
|
- lib/angular_sprinkles/engine.rb
|
|
163
182
|
- lib/angular_sprinkles/helpers.rb
|
|
164
|
-
- lib/angular_sprinkles/helpers/bind_helper.rb
|
|
165
|
-
- lib/angular_sprinkles/helpers/bind_service_helper.rb
|
|
166
183
|
- lib/angular_sprinkles/helpers/directive_helper.rb
|
|
167
|
-
- lib/angular_sprinkles/
|
|
168
|
-
- lib/angular_sprinkles/
|
|
184
|
+
- lib/angular_sprinkles/helpers/service_helper.rb
|
|
185
|
+
- lib/angular_sprinkles/java_script.rb
|
|
186
|
+
- lib/angular_sprinkles/key_generator.rb
|
|
187
|
+
- lib/angular_sprinkles/model_decorator.rb
|
|
188
|
+
- lib/angular_sprinkles/object_key_wrapper.rb
|
|
169
189
|
- lib/angular_sprinkles/railtie.rb
|
|
170
|
-
-
|
|
171
|
-
- spec/
|
|
172
|
-
- spec/
|
|
173
|
-
- spec/
|
|
174
|
-
- spec/
|
|
175
|
-
- spec/
|
|
176
|
-
- spec/
|
|
190
|
+
- spec/angular_sprinkles/constructor_collection_spec.rb
|
|
191
|
+
- spec/angular_sprinkles/constructor_spec.rb
|
|
192
|
+
- spec/angular_sprinkles/content_cache_spec.rb
|
|
193
|
+
- spec/angular_sprinkles/content_yielder_spec.rb
|
|
194
|
+
- spec/angular_sprinkles/context_spec.rb
|
|
195
|
+
- spec/angular_sprinkles/counter_spec.rb
|
|
196
|
+
- spec/angular_sprinkles/directive/attributes_spec.rb
|
|
197
|
+
- spec/angular_sprinkles/directive/input_spec.rb
|
|
198
|
+
- spec/angular_sprinkles/directive/name_spec.rb
|
|
199
|
+
- spec/angular_sprinkles/directive/options_spec.rb
|
|
200
|
+
- spec/angular_sprinkles/key_generator_spec.rb
|
|
201
|
+
- spec/angular_sprinkles/model_decorator_spec.rb
|
|
202
|
+
- spec/angular_sprinkles/object_key_wrapper_spec.rb
|
|
203
|
+
- spec/controllers/test_controller_spec.rb
|
|
204
|
+
- spec/dummy/.rspec
|
|
205
|
+
- spec/dummy/README.rdoc
|
|
206
|
+
- spec/dummy/Rakefile
|
|
207
|
+
- spec/dummy/app/assets/images/.keep
|
|
208
|
+
- spec/dummy/app/assets/javascripts/application.js
|
|
209
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
|
210
|
+
- spec/dummy/app/controllers/application_controller.rb
|
|
211
|
+
- spec/dummy/app/controllers/concerns/.keep
|
|
212
|
+
- spec/dummy/app/controllers/test_controller.rb
|
|
213
|
+
- spec/dummy/app/helpers/application_helper.rb
|
|
214
|
+
- spec/dummy/app/mailers/.keep
|
|
215
|
+
- spec/dummy/app/models/.keep
|
|
216
|
+
- spec/dummy/app/models/concerns/.keep
|
|
217
|
+
- spec/dummy/app/models/test_model.rb
|
|
218
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
|
219
|
+
- spec/dummy/app/views/test/new.html.erb
|
|
220
|
+
- spec/dummy/bin/bundle
|
|
221
|
+
- spec/dummy/bin/rails
|
|
222
|
+
- spec/dummy/bin/rake
|
|
223
|
+
- spec/dummy/config.ru
|
|
224
|
+
- spec/dummy/config/application.rb
|
|
225
|
+
- spec/dummy/config/boot.rb
|
|
226
|
+
- spec/dummy/config/database.yml
|
|
227
|
+
- spec/dummy/config/environment.rb
|
|
228
|
+
- spec/dummy/config/environments/development.rb
|
|
229
|
+
- spec/dummy/config/environments/production.rb
|
|
230
|
+
- spec/dummy/config/environments/test.rb
|
|
231
|
+
- spec/dummy/config/initializers/assets.rb
|
|
232
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
|
233
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
|
234
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
|
235
|
+
- spec/dummy/config/initializers/inflections.rb
|
|
236
|
+
- spec/dummy/config/initializers/mime_types.rb
|
|
237
|
+
- spec/dummy/config/initializers/session_store.rb
|
|
238
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
|
239
|
+
- spec/dummy/config/locales/en.yml
|
|
240
|
+
- spec/dummy/config/routes.rb
|
|
241
|
+
- spec/dummy/config/secrets.yml
|
|
242
|
+
- spec/dummy/db/migrate/20140908021353_create_test_models.rb
|
|
243
|
+
- spec/dummy/db/schema.rb
|
|
244
|
+
- spec/dummy/lib/assets/.keep
|
|
245
|
+
- spec/dummy/log/.keep
|
|
246
|
+
- spec/dummy/public/404.html
|
|
247
|
+
- spec/dummy/public/422.html
|
|
248
|
+
- spec/dummy/public/500.html
|
|
249
|
+
- spec/dummy/public/favicon.ico
|
|
250
|
+
- spec/features/javascript_spec.rb
|
|
251
|
+
- spec/rails_helper.rb
|
|
177
252
|
- spec/spec_helper.rb
|
|
178
|
-
- spec/variable_cache_spec.rb
|
|
179
253
|
homepage: http://github.com/BrewhouseTeam/angular_sprinkles
|
|
180
254
|
licenses:
|
|
181
255
|
- MIT
|
|
@@ -199,5 +273,5 @@ rubyforge_project:
|
|
|
199
273
|
rubygems_version: 2.4.1
|
|
200
274
|
signing_key:
|
|
201
275
|
specification_version: 4
|
|
202
|
-
summary: Add
|
|
276
|
+
summary: Add a few sprinkles of AngularJS to your Rails App
|
|
203
277
|
test_files: []
|