react-rails-img 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +5 -0
- data/.travis.yml +19 -1
- data/README.md +2 -0
- data/Rakefile +5 -0
- data/lib/react/rails/img/version.rb +1 -1
- data/react-rails-img.gemspec +11 -0
- data/vendor/assets/javascripts/react_rails_img.js.jsx.erb +1 -1
- metadata +114 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b5d052ce9d454508c2fa6aea393861f3695529f
|
4
|
+
data.tar.gz: 7e4b866c63c137ff2c8a13dbb867128ef7d328ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 559e410f2627080fdc3617b9e903c6817a7f8bf4b391e4b71c38f841aa523703a27c7baa1163bdf020979ceea5cbce090e7c78dec843d5a75cc86d675e8afc01
|
7
|
+
data.tar.gz: f974fd3ccca6990d8cc3f1a7cadb2d353f0f04afbbef2fc89903af8e9c64dc387c1cb9538b1939e8deb5d16a64b1efa2bcc124ca79dc11be8521e959729bf7cd
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,3 +1,21 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
- 2.
|
3
|
+
- 2.3.1
|
4
|
+
env:
|
5
|
+
global:
|
6
|
+
# - JAVASCRIPT_DRIVER=webkit_debug
|
7
|
+
|
8
|
+
# to get capybara-webkit work with qt5
|
9
|
+
# refs:
|
10
|
+
# - http://stackoverflow.com/questions/37201085/unable-to-locate-package-libqt5webkit5-dev
|
11
|
+
# - https://docs.travis-ci.com/user/trusty-ci-environment#tl%3Bdr---Using-Trusty
|
12
|
+
sudo: required
|
13
|
+
dist: trusty
|
14
|
+
addons:
|
15
|
+
apt:
|
16
|
+
sources:
|
17
|
+
- ubuntu-sdk-team
|
18
|
+
packages:
|
19
|
+
- libqt5webkit5-dev
|
20
|
+
- qtdeclarative5-dev
|
21
|
+
script: xvfb-run bundle exec rake
|
data/README.md
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
Simple image helpers for the rails project using react, make it easily just like using the `<img>` tag.
|
4
4
|
|
5
|
+
[![Build Status](https://travis-ci.org/rainchen/react-rails-img.svg?branch=master)](https://travis-ci.org/rainchen/react-rails-img)
|
6
|
+
|
5
7
|
## Installation
|
6
8
|
|
7
9
|
1. Add this line to your application's Gemfile:
|
data/Rakefile
CHANGED
data/react-rails-img.gemspec
CHANGED
@@ -19,6 +19,17 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
+
spec.add_dependency "react-rails"
|
23
|
+
|
22
24
|
spec.add_development_dependency "bundler", "~> 1.9"
|
23
25
|
spec.add_development_dependency "rake", "~> 10.0"
|
26
|
+
|
27
|
+
# for testing
|
28
|
+
spec.add_development_dependency "rails", "~> 4.2.7"
|
29
|
+
spec.add_development_dependency "sqlite3"
|
30
|
+
spec.add_development_dependency "rspec-rails", "~> 3.5"
|
31
|
+
spec.add_development_dependency "capybara-webkit"
|
32
|
+
spec.add_development_dependency "selenium-webdriver"
|
33
|
+
spec.add_development_dependency "launchy"
|
34
|
+
spec.add_development_dependency "byebug"
|
24
35
|
end
|
@@ -8,7 +8,7 @@ if should_compute_assets_path
|
|
8
8
|
images_enumerator = defined?(assets) ? assets.each_file : Dir["#{images_dir}**/*.*"]
|
9
9
|
images_enumerator.each do |file_path|
|
10
10
|
if file_path.to_s.starts_with?(images_dir)
|
11
|
-
relative_path = file_path.relative_path_from(images_path)
|
11
|
+
relative_path = Pathname.new(file_path).relative_path_from(Pathname.new(images_path)).to_s
|
12
12
|
file_path = asset_path(relative_path)
|
13
13
|
images[relative_path] = file_path
|
14
14
|
end
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: react-rails-img
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RainChen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: react-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
|
@@ -38,6 +52,104 @@ dependencies:
|
|
38
52
|
- - "~>"
|
39
53
|
- !ruby/object:Gem::Version
|
40
54
|
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 4.2.7
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 4.2.7
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: sqlite3
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec-rails
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.5'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.5'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: capybara-webkit
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: selenium-webdriver
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: launchy
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: byebug
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
41
153
|
description: simple image helpers for the rails project using react, make it easily
|
42
154
|
just like using the <img> tag
|
43
155
|
email:
|