brightcontent-core 2.1.4 → 2.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a48b403528f10cfdccb5ab0599ed807ffae002ad
4
- data.tar.gz: 38acb3ad1c5b473ebb00d412ded0d8f369007f0e
3
+ metadata.gz: d35bf6ba253fbd2ddf7fe207a0fe4a1fbecfbf61
4
+ data.tar.gz: ec5cfee1eb6b6f149d590f3db1a571b785d1d950
5
5
  SHA512:
6
- metadata.gz: 7f0d4a289c984871ff833877ab7f08544c828a0817917aa50b717f762e9ba3d88386eb56ce2164c6c61cd848adf5f327cfd3cf231403c4b7695a32b441d2ba60
7
- data.tar.gz: 751e5fe9250be12989b718fdb040cfc7c61e0546708f05699ef71aa82ad05faf1033503fe6b0f771cad768878db635562e04b2bdb48ec4606111d358b314aacb
6
+ metadata.gz: 3949d392a27a5b32cbaad04de8a127a833293a4b5dd834cdba69fea8ee7e10e0ecab9ebf5471348f82dd77291aea6b5e8147e813c57c4833437a16905c4861e3
7
+ data.tar.gz: 9fad89c2d9884156e629cac2f359e7570b09858901ba4e5df01a232aa3ecb05f7271fefd6c03e5bcfdcdabe9b4e4143babca296c3cb512f24b08b3050c7a87d7
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.require_paths = ["lib"]
17
17
 
18
18
  s.add_dependency "rails", ">= 4.0.0"
19
- s.add_dependency "bcrypt-ruby"
19
+ s.add_dependency "bcrypt"
20
20
  s.add_dependency "bootstrap-sass", ">= 3.1"
21
21
  s.add_dependency "bootstrap-wysihtml5-rails", ">= 0.3.2"
22
22
  s.add_dependency "coffee-rails"
@@ -98,7 +98,7 @@ SimpleForm.setup do |config|
98
98
  config.label_class = 'control-label col-sm-2'
99
99
 
100
100
  # You can define the class to use on all forms. Default is simple_form.
101
- config.form_class = 'form-horizontal'
101
+ config.default_form_class = 'form-horizontal'
102
102
 
103
103
  # You can define which elements should obtain additional classes
104
104
  # config.generate_additional_classes_for = [:wrapper, :label, :input]
@@ -1,12 +1,21 @@
1
1
  class CreateBrightcontentAdminUsers < ActiveRecord::Migration
2
- def change
2
+ def up
3
3
  create_table :brightcontent_admin_users do |t|
4
4
  t.string :email
5
5
  t.string :password_digest
6
-
7
6
  t.timestamps
8
7
  end
9
8
 
10
- Brightcontent::AdminUser.create!(:email => 'admin@example.com', :password => 'password', :password_confirmation => 'password')
9
+ if defined? Brightcontent::AdminUser
10
+ Brightcontent::AdminUser.create!(
11
+ email: 'admin@example.com',
12
+ password: 'password',
13
+ password_confirmation: 'password'
14
+ )
15
+ end
16
+ end
17
+
18
+ def down
19
+ drop_table :brightcontent_admin_users
11
20
  end
12
21
  end
data/spec/factories.rb CHANGED
@@ -21,7 +21,7 @@ FactoryGirl.define do
21
21
 
22
22
  factory :author do
23
23
  factory :author_with_blogs do
24
- ignore do
24
+ transient do
25
25
  blogs_count 5
26
26
  end
27
27
  after(:create) do |author, evaluator|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brightcontent-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Developers at Brightin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-13 00:00:00.000000000 Z
11
+ date: 2014-12-18 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: 4.0.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: bcrypt-ruby
28
+ name: bcrypt
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="