planit-rails 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +51 -2
- data/lib/planit/rails/version.rb +1 -1
- data/planit-rails.gemspec +2 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 639bec399a0b8d7beaae2b2e693ce26823e14126
|
4
|
+
data.tar.gz: 7e65e0839abaac96d79021e493470f897628841d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2df62e44c5bfb6729e2a545314783e52f557444ad6e75a7de27e25ab40d7c32611e6ecb89ad53cd77c1fce4e73f7bfc11f2b7613b43911796ecbf56782a5b416
|
7
|
+
data.tar.gz: 17fdd4c3c3f730ae210f5f93be4297c31b77954070a701b797524d8a93d8c03b8fc03d11c3918eddf40e735e6e3819379d85b6de9c273c74ccd672b7308a23ff
|
data/README.md
CHANGED
@@ -1,3 +1,52 @@
|
|
1
|
-
|
1
|
+
Planit Rails
|
2
|
+
================
|
2
3
|
|
3
|
-
|
4
|
+
PlanitJS is a tool built on jQuery to help you interact with markers/hotspots
|
5
|
+
on an image or blank container. This gem adds the script and stylesheet to your
|
6
|
+
asset pipeline.
|
7
|
+
|
8
|
+
Refer to [PlanitJS](https://github.com/planitjs/planit) for PlanitJS's usage.
|
9
|
+
|
10
|
+
Installation
|
11
|
+
----------------
|
12
|
+
|
13
|
+
Add this line to your application's Gemfile:
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
gem 'planit-rails'
|
17
|
+
```
|
18
|
+
|
19
|
+
And then execute:
|
20
|
+
|
21
|
+
$ bundle
|
22
|
+
|
23
|
+
Or install it yourself as:
|
24
|
+
|
25
|
+
$ gem install planit-rails
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
|
29
|
+
Load the scripts, and don't forget jQuery:
|
30
|
+
|
31
|
+
**application.js**
|
32
|
+
|
33
|
+
```js
|
34
|
+
//= require jquery
|
35
|
+
//= require planit
|
36
|
+
```
|
37
|
+
|
38
|
+
You can also add the stylesheet as well:
|
39
|
+
|
40
|
+
**application.scss**
|
41
|
+
|
42
|
+
```scss
|
43
|
+
@import "planit";
|
44
|
+
```
|
45
|
+
|
46
|
+
## Contributing
|
47
|
+
|
48
|
+
1. Fork it ( https://github.com/[my-github-username]/planit-rails/fork )
|
49
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
50
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
51
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
52
|
+
5. Create a new Pull Request
|
data/lib/planit/rails/version.rb
CHANGED
data/planit-rails.gemspec
CHANGED
@@ -18,6 +18,8 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
+
spec.add_dependency "jquery-rails"
|
22
|
+
|
21
23
|
spec.add_development_dependency "bundler", "~> 1.7"
|
22
24
|
spec.add_development_dependency "rake", "~> 10.0"
|
23
25
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: planit-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean C Davis
|
@@ -10,6 +10,20 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2015-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: jquery-rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: bundler
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|