active_record_survey 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 135e7023d35c5af25cb9b0d68a8809dbfd5591ac
4
- data.tar.gz: c0cef2a7b97e07073c762c9e83a9fde9c002fdad
3
+ metadata.gz: e81a38d6cb9445bf6ebbbf83e5149959b9ae9c4a
4
+ data.tar.gz: e66fc535fc38741519a9e2459bd5f2895b55c761
5
5
  SHA512:
6
- metadata.gz: 65791020c8e6d72375cdb4e9f492b0fdbd32116169311eb91e794a681fbd626bfb5d0b3c160825a3be0689d32f1ed25ac96e0fad7f5655a8bcd4c89835cada30
7
- data.tar.gz: 44836e1c6182ad21517f00d4f2dc0fa6881df7b2fa2804439f30f07730e0284beadeacd8e6aace4249fce3aa316040a695ce2a6e71c0d2f98ced92511de99781
6
+ metadata.gz: e80fc31c97e877bc3ebae73b661a0e86db6a7bd483994c6f264953cce862d28baf42af068654f7e5338d34738455a2fbf3b2f0bae918a7fe37078078c428e3d4
7
+ data.tar.gz: f7640676d92d174f10e150712df2e4d8824c8da2dd66b416c55ed14d240c246869c111b4a54e1d8d7b067f219e7d317a7f371c580a1a21dbd5b5c76d1cc227b1
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source 'https://rubygems.org'
3
3
  gem 'rake'
4
4
 
5
5
  group :development, :test do
6
- activerecord_version = ENV['HAS_DYNAMIC_COLUMNS_ACTIVERECORD_VERSION']
6
+ activerecord_version = ENV['ACTIVE_RECORD_SURVEY_ACTIVERECORD_VERSION']
7
7
 
8
8
  if ENV['RAILS_VERSION'] == 'edge' || activerecord_version == "edge"
9
9
  gem 'arel', :github => 'rails/arel'
data/README.md CHANGED
@@ -25,6 +25,12 @@ Or install it yourself as:
25
25
 
26
26
  $ gem install active_record_survey
27
27
 
28
+ ## Installation
29
+
30
+ ```ruby
31
+ rails generate active_record_survey:active_record
32
+ ```
33
+
28
34
  ## Usage
29
35
 
30
36
  See the spec file for more detailed usage.
@@ -68,7 +74,7 @@ survey.save
68
74
 
69
75
  The will build a survey with the following node structure.
70
76
 
71
- ![alt tag](https://raw.github.com/butchmarshall/active_record_survey/bin/Example_1.png)
77
+ ![alt tag](https://raw.githubusercontent.com/butchmarshall/active_record_survey/master/bin/Example_1.png)
72
78
 
73
79
  ## Development
74
80
 
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordSurvey
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  end
@@ -1,5 +1,5 @@
1
- require "generators/has_dynamic_columns/has_dynamic_columns_generator"
2
- require "generators/has_dynamic_columns/next_migration_version"
1
+ require "generators/active_record_survey/active_record_survey_generator"
2
+ require "generators/active_record_survey/next_migration_version"
3
3
  require "rails/generators/migration"
4
4
  require "rails/generators/active_record"
5
5
 
@@ -12,7 +12,7 @@ module HasDynamicColumns
12
12
  source_paths << File.join(File.dirname(__FILE__), "templates")
13
13
 
14
14
  def create_migration_file
15
- migration_template "migration.rb", "db/migrate/add_has_dynamic_columns.rb"
15
+ migration_template "migration.rb", "db/migrate/add_active_record_survey.rb"
16
16
  end
17
17
 
18
18
  def self.next_migration_number(dirname)
data/rspec_rvm CHANGED
@@ -17,23 +17,23 @@ function run {
17
17
  fi
18
18
 
19
19
  echo 'Running bundle exec rspec spec against activesupport / activerecord 3.2.17'
20
- HAS_DYNAMIC_COLUMNS_ACTIVERECORD_VERSION=3.2.17 bundle update activerecord
20
+ ACTIVE_RECORD_SURVEY_ACTIVERECORD_VERSION=3.2.17 bundle update activerecord
21
21
  bundle exec rspec spec
22
22
 
23
23
  echo 'Running bundle exec rspec spec against activesupport / activerecord 4.2.0'
24
- HAS_DYNAMIC_COLUMNS_ACTIVERECORD_VERSION=4.2.0 bundle update activerecord
24
+ ACTIVE_RECORD_SURVEY_ACTIVERECORD_VERSION=4.2.0 bundle update activerecord
25
25
  bundle exec rspec spec
26
26
 
27
27
  echo 'Running bundle exec rspec spec against activesupport / activerecord edge'
28
- HAS_DYNAMIC_COLUMNS_ACTIVERECORD_VERSION="edge" bundle update activerecord
28
+ ACTIVE_RECORD_SURVEY_ACTIVERECORD_VERSION="edge" bundle update activerecord
29
29
  bundle exec rspec spec
30
30
  }
31
31
 
32
- rvm use ruby-2.1.1@has_dynamic_columns --create
32
+ rvm use ruby-2.1.1@active_record_survey --create
33
33
  run
34
34
 
35
- rvm use ruby-2.0.0@has_dynamic_columns --create
35
+ rvm use ruby-2.0.0@active_record_survey --create
36
36
  run
37
37
 
38
- rvm use ruby-1.9.3@has_dynamic_columns --create
38
+ rvm use ruby-1.9.3@active_record_survey --create
39
39
  run
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record_survey
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Butch Marshall
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-29 00:00:00.000000000 Z
11
+ date: 2015-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord