active_csv 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/active_csv.gemspec +3 -2
- data/lib/active_csv/attr_file.rb +2 -1
- data/tests/config/csv_attributes.yml +0 -2
- metadata +5 -5
data/active_csv.gemspec
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'active_csv'
|
3
|
-
s.version = '0.1.
|
3
|
+
s.version = '0.1.1'
|
4
4
|
s.add_dependency('activemodel', '>= 3.0.0')
|
5
5
|
s.summary = 'Inteds to allow you to work with csv data files with an API ActiveRecord-like'
|
6
|
-
s.description = 'Inteds to allow you to work with csv data files with an API ActiveRecord-like'
|
6
|
+
s.description = 'Inteds to allow you to work with csv data files with an API ActiveRecord-like, but still very limited.'
|
7
7
|
s.files = `git ls-files`.split("\n")
|
8
|
+
s.homepage = 'http://github.com/marcofognog/active_csv'
|
8
9
|
s.platform = Gem::Platform::RUBY
|
9
10
|
s.authors = ["Marco Antonio Fogaça Nogueira"]
|
10
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.3.7")
|
data/lib/active_csv/attr_file.rb
CHANGED
@@ -7,6 +7,7 @@ class AttrFile
|
|
7
7
|
def fields(model_name)
|
8
8
|
# The sequency of the attributes is always the same as in the yaml file.
|
9
9
|
model_fields = YAML.load_file(@name)
|
10
|
-
model_fields[model_name].split(', ') #Array
|
10
|
+
fields = model_fields[model_name].split(', ').insert(0,"id") #Array
|
11
|
+
fields
|
11
12
|
end
|
12
13
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_csv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Marco Antonio Foga\xC3\xA7a Nogueira"
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
version: 3.0.0
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: *id001
|
37
|
-
description: Inteds to allow you to work with csv data files with an API ActiveRecord-like
|
37
|
+
description: Inteds to allow you to work with csv data files with an API ActiveRecord-like, but still very limited.
|
38
38
|
email:
|
39
39
|
- marcofognog@gmail.com
|
40
40
|
executables: []
|
@@ -65,7 +65,7 @@ files:
|
|
65
65
|
- tests/tests_save.rb
|
66
66
|
- tests/tests_update_attributes.rb
|
67
67
|
has_rdoc: true
|
68
|
-
homepage:
|
68
|
+
homepage: http://github.com/marcofognog/active_csv
|
69
69
|
licenses: []
|
70
70
|
|
71
71
|
post_install_message:
|