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 +4 -4
- data/Gemfile +1 -1
- data/README.md +7 -1
- data/lib/active_record_survey/version.rb +1 -1
- data/lib/generators/active_record_survey/active_record_generator.rb +3 -3
- data/rspec_rvm +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e81a38d6cb9445bf6ebbbf83e5149959b9ae9c4a
|
4
|
+
data.tar.gz: e66fc535fc38741519a9e2459bd5f2895b55c761
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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['
|
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.
|
77
|
+
![alt tag](https://raw.githubusercontent.com/butchmarshall/active_record_survey/master/bin/Example_1.png)
|
72
78
|
|
73
79
|
## Development
|
74
80
|
|
@@ -1,5 +1,5 @@
|
|
1
|
-
require "generators/
|
2
|
-
require "generators/
|
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/
|
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
|
-
|
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
|
-
|
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
|
-
|
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@
|
32
|
+
rvm use ruby-2.1.1@active_record_survey --create
|
33
33
|
run
|
34
34
|
|
35
|
-
rvm use ruby-2.0.0@
|
35
|
+
rvm use ruby-2.0.0@active_record_survey --create
|
36
36
|
run
|
37
37
|
|
38
|
-
rvm use ruby-1.9.3@
|
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.
|
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-
|
11
|
+
date: 2015-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|