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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c790128270ae83c43af08ac36a24e55aa5241b8b
4
- data.tar.gz: 221387ef8f5007debad90f610d3dd2567019995f
3
+ metadata.gz: f5c8b54d7e8a1916651b378cd080483bc0e8b43b
4
+ data.tar.gz: 74234004cae78299a34c1a9dc7130c2c86950556
5
5
  SHA512:
6
- metadata.gz: b712a396fbf157b3b0fb6b3bd796d0711044e3d4c1814709577c9357c7bd04cf3763507b056f6e8937095d4a8e7e4370f626a6519b5b4523f29cb95b05e40afd
7
- data.tar.gz: 966fe448084e3ea8841b444680f6aaa08639587ca4f6af1a87e3a6a2898750a2b6b2adc3dfa0d877e19f7305fac04b79381f33248522b0014bec85be1ba79dbe
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
- group :development, :test do
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'
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
@@ -0,0 +1,8 @@
1
+ machine:
2
+ ruby:
3
+ version: 2.2.2
4
+ deployment:
5
+ production:
6
+ branch: release
7
+ commands:
8
+ - cd ~/backframe; bundle exec rake release
@@ -48,17 +48,17 @@ module Backframe
48
48
  status: 200
49
49
  }
50
50
  format.csv {
51
- fields = expand_fields(collection, serializer, fields)
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, fields)
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, fields)
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
@@ -1,3 +1,3 @@
1
1
  module Backframe
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.4'
3
3
  end
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.2
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-02 00:00:00.000000000 Z
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