blazer 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of blazer might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +13 -1
- data/app/controllers/blazer/queries_controller.rb +1 -1
- data/app/models/blazer/audit.rb +1 -1
- data/app/models/blazer/query.rb +1 -1
- data/lib/blazer.rb +2 -0
- data/lib/blazer/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab48088bf2a8e80e0c931e91203b6e85d07aedf1
|
4
|
+
data.tar.gz: b75b3e35207e0d5c5840c56c2ec9c8fa37c6c312
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea4ae2ecbf726aae13fa10cf8a1eac471e2eba3c5fa2402388a4c73285068bb81190f5d765345407f3470576b50fe47086decc02ee41e134306f69be6b1d38a1
|
7
|
+
data.tar.gz: ee0abc959f7978ed51c0602ef3e6fde127fbd1791c84ed99369fd65c96d858c86a8d7fdffabfed28ad0a11ae84ee83119d206c6f7149b55074ba159aee1c3825
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
Share data effortlessly with your team
|
4
4
|
|
5
|
+
Blazer eliminates the need for many admin pages
|
6
|
+
|
5
7
|
[Play around with the demo](https://blazerme.herokuapp.com) - data from [MovieLens](http://grouplens.org/datasets/movielens/)
|
6
8
|
|
7
9
|
![Screenshot](https://blazerme.herokuapp.com/assets/screenshot-d9ba1e4394901e7233ce462c0c8dc8f5.png)
|
@@ -15,7 +17,7 @@ Works with PostgreSQL and MySQL
|
|
15
17
|
- **Secure** - works with your authentication system
|
16
18
|
- **Variables** - run the same queries with different values
|
17
19
|
- **Linked Columns** - link to other pages in your apps or around the web
|
18
|
-
- **Smart Columns** - get the data
|
20
|
+
- **Smart Columns** - get the data you want without all the joins
|
19
21
|
- **Smart Variables** - no need to remember ids
|
20
22
|
- **Charts** - visualize the data
|
21
23
|
- **Audits** - all queries are tracked
|
@@ -119,6 +121,12 @@ Turn off audits
|
|
119
121
|
Blazer.audit = false
|
120
122
|
```
|
121
123
|
|
124
|
+
Custom user class
|
125
|
+
|
126
|
+
```ruby
|
127
|
+
Blazer.user_class = "Admin"
|
128
|
+
```
|
129
|
+
|
122
130
|
Customize user name
|
123
131
|
|
124
132
|
```ruby
|
@@ -137,6 +145,10 @@ Blazer.user_name = :first_name
|
|
137
145
|
- favorites
|
138
146
|
- support for multiple data sources
|
139
147
|
|
148
|
+
## History
|
149
|
+
|
150
|
+
View the [changelog](https://github.com/ankane/blazer/blob/master/CHANGELOG.md)
|
151
|
+
|
140
152
|
## Thanks
|
141
153
|
|
142
154
|
Blazer uses a number of awesome, open source projects.
|
@@ -160,7 +160,7 @@ module Blazer
|
|
160
160
|
result.each do |untyped_row|
|
161
161
|
row = {}
|
162
162
|
untyped_row.each do |k, v|
|
163
|
-
row[k] = result.column_types[k].type_cast
|
163
|
+
row[k] = result.column_types.empty? ? v : result.column_types[k].send(:type_cast, v)
|
164
164
|
end
|
165
165
|
rows << row
|
166
166
|
end
|
data/app/models/blazer/audit.rb
CHANGED
data/app/models/blazer/query.rb
CHANGED
data/lib/blazer.rb
CHANGED
@@ -8,11 +8,13 @@ module Blazer
|
|
8
8
|
attr_accessor :audit
|
9
9
|
attr_reader :time_zone
|
10
10
|
attr_accessor :user_name
|
11
|
+
attr_accessor :user_class
|
11
12
|
attr_accessor :timeout
|
12
13
|
end
|
13
14
|
self.audit = true
|
14
15
|
self.user_name = :name
|
15
16
|
self.timeout = 15
|
17
|
+
self.user_class = 'User'
|
16
18
|
|
17
19
|
def self.time_zone=(time_zone)
|
18
20
|
@time_zone = time_zone.is_a?(ActiveSupport::TimeZone) ? time_zone : ActiveSupport::TimeZone[time_zone.to_s]
|
data/lib/blazer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blazer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -74,6 +74,7 @@ extensions: []
|
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
76
|
- ".gitignore"
|
77
|
+
- CHANGELOG.md
|
77
78
|
- Gemfile
|
78
79
|
- LICENSE.txt
|
79
80
|
- README.md
|
@@ -139,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
140
|
version: '0'
|
140
141
|
requirements: []
|
141
142
|
rubyforge_project:
|
142
|
-
rubygems_version: 2.
|
143
|
+
rubygems_version: 2.4.5
|
143
144
|
signing_key:
|
144
145
|
specification_version: 4
|
145
146
|
summary: Share data effortlessly with your team
|