backframe 0.0.2 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +11 -12
- data/circle.yml +8 -0
- data/lib/backframe/acts_as_api/page.rb +3 -3
- data/lib/backframe/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5c8b54d7e8a1916651b378cd080483bc0e8b43b
|
4
|
+
data.tar.gz: 74234004cae78299a34c1a9dc7130c2c86950556
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1938aaa64721109d5e4513d13a89ae05cd6658daafdd3c2d9c1c37ed6592f01c6c0ff584f4e434775992bfb1b65eabb01c6d87a4717622597dd9a5388b0ba766
|
7
|
+
data.tar.gz: 00b77137e69fedb50e6685a2cafb55fffb47db593b587761361b33f1e9912796e2b1e2fce9ccca3bffa9e13deeb773086478760ff8d7c79526a8a68e837d3a25
|
data/Gemfile
CHANGED
@@ -2,15 +2,14 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
gemspec
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
end
|
5
|
+
gem 'activesupport'
|
6
|
+
gem 'write_xlsx'
|
7
|
+
gem 'active_model_serializers'
|
8
|
+
gem 'activerecord'
|
9
|
+
gem 'factory_girl'
|
10
|
+
gem 'faker'
|
11
|
+
gem 'kaminari'
|
12
|
+
gem 'rails'
|
13
|
+
gem 'rake'
|
14
|
+
gem 'rspec-rails'
|
15
|
+
gem 'sqlite3'
|
data/circle.yml
ADDED
@@ -48,17 +48,17 @@ module Backframe
|
|
48
48
|
status: 200
|
49
49
|
}
|
50
50
|
format.csv {
|
51
|
-
fields = expand_fields(collection, serializer,
|
51
|
+
fields = expand_fields(collection, serializer, args[:fields])
|
52
52
|
content_type = (args.key?(:download) && args[:download] == 'false') ? 'text/plain' : 'text/csv'
|
53
53
|
render :text => collection_to_csv(collection, serializer, fields, ","), :content_type => content_type, :status => 200
|
54
54
|
}
|
55
55
|
format.tsv {
|
56
|
-
fields = expand_fields(collection, serializer,
|
56
|
+
fields = expand_fields(collection, serializer, args[:fields])
|
57
57
|
content_type = (args.key?(:download) && args[:download] == 'false') ? 'text/plain' : 'text/tab-separated-values'
|
58
58
|
render :text => collection_to_csv(collection, serializer, fields, "\t"), :content_type => content_type, :status => 200
|
59
59
|
}
|
60
60
|
format.xlsx {
|
61
|
-
fields = expand_fields(collection, serializer,
|
61
|
+
fields = expand_fields(collection, serializer, args[:fields])
|
62
62
|
render :text => collection_to_xls(collection, serializer, fields), :content_type => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', :status => 200
|
63
63
|
}
|
64
64
|
end
|
data/lib/backframe/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: backframe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Greg Kops
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-05-
|
12
|
+
date: 2016-05-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: write_xlsx
|
@@ -93,6 +93,7 @@ files:
|
|
93
93
|
- README.md
|
94
94
|
- Rakefile
|
95
95
|
- backframe.gemspec
|
96
|
+
- circle.yml
|
96
97
|
- lib/backframe.rb
|
97
98
|
- lib/backframe/acts_as_api.rb
|
98
99
|
- lib/backframe/acts_as_api/adapter.rb
|