bit_core 1.4.7 → 2.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,3 @@
1
- # frozen_string_literal: true
2
1
  require "spec_helper"
3
2
 
4
3
  module BitCore
@@ -1,4 +1,3 @@
1
- # frozen_string_literal: true
2
1
  require "spec_helper"
3
2
 
4
3
  module BitCore
@@ -1,4 +1,3 @@
1
- # frozen_string_literal: true
2
1
  require "spec_helper"
3
2
 
4
3
  module BitCore
@@ -1,4 +1,3 @@
1
- # frozen_string_literal: true
2
1
  require "spec_helper"
3
2
 
4
3
  module BitCore
@@ -13,34 +12,13 @@ module BitCore
13
12
  it "should render markdown as html" do
14
13
  subject.body = "# header"
15
14
 
16
- expect(subject.render_body).to match(%r{<h1>header<\/h1>})
15
+ expect(subject.render_body).to match(/<h1>header<\/h1>/)
17
16
  end
18
17
 
19
18
  it "should escape html" do
20
19
  subject.body = "<div>my content</div>"
21
20
 
22
- expect(subject.render_body).to match(%r{<p>my content<\/p>})
23
- end
24
- end
25
-
26
- describe "when validated" do
27
- context "if the options attribute is present" do
28
- it "normalizes it" do
29
- hashable = Struct.new("Hashable", :to_h).new("foo": "bar")
30
- subject.options = hashable
31
- subject.valid?
32
-
33
- expect(subject.options).to eq("foo": "bar")
34
- end
35
- end
36
-
37
- context "if the options attribute isn't present" do
38
- it "leaves it as nil" do
39
- subject.options = nil
40
- subject.valid?
41
-
42
- expect(subject.options).to be_nil
43
- end
21
+ expect(subject.render_body).to match(/<p>my content<\/p>/)
44
22
  end
45
23
  end
46
24
 
@@ -1,4 +1,3 @@
1
- # frozen_string_literal: true
2
1
  require "spec_helper"
3
2
 
4
3
  module BitCore
data/spec/spec_helper.rb CHANGED
@@ -1,18 +1,16 @@
1
- # frozen_string_literal: true
2
1
  ENV["RAILS_ENV"] ||= "test"
3
2
 
4
- require File.expand_path("../dummy/config/environment.rb", __FILE__)
3
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
4
  require "rspec/rails"
6
5
 
7
6
  Rails.backtrace_cleaner.remove_silencers!
8
7
 
9
8
  # Load support files
10
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
9
+ Dir["#{ File.dirname(__FILE__) }/support/**/*.rb"].each { |f| require f }
11
10
 
12
11
  RSpec.configure do |config|
13
12
  config.mock_with :rspec
14
- config.fixture_path = "#{File.dirname(__FILE__)}/fixtures"
13
+ config.fixture_path = "#{ File.dirname(__FILE__) }/fixtures"
15
14
  config.use_transactional_fixtures = true
16
- config.infer_base_class_for_anonymous_controllers = false
17
15
  config.order = "random"
18
16
  end
metadata CHANGED
@@ -1,15 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bit_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.7
4
+ version: 2.0.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Carty-Fickes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-16 00:00:00.000000000 Z
11
+ date: 2016-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: actionpack
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 5.0.0.beta4
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 5.0.0.beta4
27
+ - !ruby/object:Gem::Dependency
28
+ name: actionview
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 5.0.0.beta4
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 5.0.0.beta4
41
+ - !ruby/object:Gem::Dependency
42
+ name: activerecord
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 5.0.0.beta4
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 5.0.0.beta4
55
+ - !ruby/object:Gem::Dependency
56
+ name: activesupport
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 5.0.0.beta4
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 5.0.0.beta4
69
+ - !ruby/object:Gem::Dependency
70
+ name: railties
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 5.0.0.beta4
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 5.0.0.beta4
13
83
  - !ruby/object:Gem::Dependency
14
84
  name: redcarpet
15
85
  requirement: !ruby/object:Gem::Requirement
@@ -70,28 +140,14 @@ dependencies:
70
140
  requirements:
71
141
  - - "~>"
72
142
  - !ruby/object:Gem::Version
73
- version: '3.0'
143
+ version: 3.5.0.beta3
74
144
  type: :development
75
145
  prerelease: false
76
146
  version_requirements: !ruby/object:Gem::Requirement
77
147
  requirements:
78
148
  - - "~>"
79
149
  - !ruby/object:Gem::Version
80
- version: '3.0'
81
- - !ruby/object:Gem::Dependency
82
- name: rubocop
83
- requirement: !ruby/object:Gem::Requirement
84
- requirements:
85
- - - '='
86
- - !ruby/object:Gem::Version
87
- version: '0.40'
88
- type: :development
89
- prerelease: false
90
- version_requirements: !ruby/object:Gem::Requirement
91
- requirements:
92
- - - '='
93
- - !ruby/object:Gem::Version
94
- version: '0.40'
150
+ version: 3.5.0.beta3
95
151
  description: Models, migrations, etc.
96
152
  email:
97
153
  - ericcf@northwestern.edu
@@ -102,8 +158,6 @@ files:
102
158
  - MIT-LICENSE
103
159
  - README.md
104
160
  - Rakefile
105
- - app/assets/stylesheets/bit_core/application.css
106
- - app/controllers/bit_core/application_controller.rb
107
161
  - app/models/bit_core/audio_slide.rb
108
162
  - app/models/bit_core/content_module.rb
109
163
  - app/models/bit_core/content_provider.rb
@@ -181,7 +235,7 @@ files:
181
235
  - spec/models/bit_core/slide_spec.rb
182
236
  - spec/models/bit_core/slideshow_spec.rb
183
237
  - spec/spec_helper.rb
184
- homepage: https://github.com/NU-CBITS/bit_core
238
+ homepage: https://github.com/nupmmarkbegale/bit_core
185
239
  licenses:
186
240
  - MIT
187
241
  metadata: {}
@@ -196,9 +250,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
196
250
  version: '0'
197
251
  required_rubygems_version: !ruby/object:Gem::Requirement
198
252
  requirements:
199
- - - ">="
253
+ - - ">"
200
254
  - !ruby/object:Gem::Version
201
- version: '0'
255
+ version: 1.3.1
202
256
  requirements: []
203
257
  rubyforge_project:
204
258
  rubygems_version: 2.6.4
@@ -1,15 +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 bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any styles
10
- * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
- * file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
- module BitCore
3
- class ApplicationController < ActionController::Base
4
- end
5
- end