highcharts_on_rails 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md ADDED
@@ -0,0 +1,55 @@
1
+ # HighchartsOnRails
2
+
3
+ Sexy DSL for using higcharts in RoR
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'highcharts_on_rails'
10
+
11
+ Add this line to your applications application.js file:
12
+
13
+ //= require highcharts_on_rails/charts
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install highcharts_on_rails
22
+
23
+ ## Usage
24
+
25
+ ### Describing chart
26
+
27
+ Example
28
+
29
+ @chart = HighchartsOnRails::HollowPieChart.new do |chart|
30
+ chart.title "Browser market share"
31
+ chart.subtitle "Random data for random browsers :P"
32
+ chart.set_container 'nice'
33
+ chart.add_series %w(IE FF Chrome), [1,30,69]
34
+ chart.with_labels!
35
+ chart.add_json({plotOptions: {pie: {size: "80%", innerSize: "50%"}}})
36
+ end
37
+
38
+ ### Rendering chart
39
+
40
+ This couldn't be any simpler. Example for haml view:
41
+
42
+ = highchart(@chart)
43
+
44
+ ## Contributing
45
+
46
+ 1. Fork it
47
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
48
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
49
+ 4. Push to the branch (`git push origin my-new-feature`)
50
+ 5. Create new Pull Request
51
+
52
+ ## Important
53
+
54
+ As this gem is still in its early stage, please be advised, that default configurations for different charts may be altered in near future.
55
+
@@ -1,3 +1,3 @@
1
1
  module HighchartsOnRails
2
- VERSION = "0.0.2"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: highcharts_on_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,24 +9,30 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-14 00:00:00.000000000 Z
12
+ date: 2013-07-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ~>
19
+ - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
21
  version: 3.2.12
22
+ - - <
23
+ - !ruby/object:Gem::Version
24
+ version: '5.0'
22
25
  type: :runtime
23
26
  prerelease: false
24
27
  version_requirements: !ruby/object:Gem::Requirement
25
28
  none: false
26
29
  requirements:
27
- - - ~>
30
+ - - ! '>='
28
31
  - !ruby/object:Gem::Version
29
32
  version: 3.2.12
33
+ - - <
34
+ - !ruby/object:Gem::Version
35
+ version: '5.0'
30
36
  - !ruby/object:Gem::Dependency
31
37
  name: sqlite3
32
38
  requirement: !ruby/object:Gem::Requirement
@@ -70,7 +76,7 @@ files:
70
76
  - lib/tasks/highcharts_on_rails_tasks.rake
71
77
  - MIT-LICENSE
72
78
  - Rakefile
73
- - README.rdoc
79
+ - README.md
74
80
  - test/dummy/app/assets/javascripts/application.js
75
81
  - test/dummy/app/assets/stylesheets/application.css
76
82
  - test/dummy/app/controllers/application_controller.rb
data/README.rdoc DELETED
@@ -1,3 +0,0 @@
1
- = HighchartsOnRails
2
-
3
- This project rocks and uses MIT-LICENSE.