img_return 1.0.9 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/img_return.rb +6 -0
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f80f6a186f111a35e1d15fb08633d7405cd6c5a0
4
- data.tar.gz: 8da6fddfae7c19e3c52343696491fe9b1512c821
3
+ metadata.gz: b663f4e1ebaa7767fafc10770cc988104e627988
4
+ data.tar.gz: 26e930c542c7938a7778b1c8f46e9557c82fd63c
5
5
  SHA512:
6
- metadata.gz: 1ce8b6cbfee10d9eae8fc5ed02d44c0b48e7b023c6c61ca206b533cf638c4cec7c2ece49b1bcd7fb243dbd4a44ee0f77f56e1932b075f4a968395995c4052e4f
7
- data.tar.gz: 9c8ea5d2e606b7b0369fe996d56deb3794a049b45f602e0fd5ef01506aa0701974e55631926793a9f7807d78fb978ef0184d70272c7746389969e547a01c6a9a
6
+ metadata.gz: 2467b48a9b4fde7d8ab29dfa803bdab6ec2cfbe24f68d6f7e599cb214e851394b5484c53f3902433cb20fb72954a0065c0c06cdb22f0cb51ad9859f1baa65e37
7
+ data.tar.gz: 387c8910ad670a7d26758a311d4bcab94b959f4cd845daef9731cc95270006fd9777820934d602eb7cfbdb755130a38867f467071217543ee8f51e9606d4f0c2
data/lib/img_return.rb CHANGED
@@ -15,6 +15,12 @@ module Return_Img
15
15
  }
16
16
  return css_code
17
17
  end
18
+ def self.sassy_write(path, css_code, mode)
19
+ File.open("#{path}.css.scss", mode){|fp|
20
+ fp.puts(css_code)
21
+ }
22
+ return css_code
23
+ end
18
24
  class Image
19
25
  def list(dir)
20
26
  images = []
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: img_return
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ralph Desir
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-13 00:00:00.000000000 Z
11
+ date: 2015-09-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: img_return is a gem designed to return random images and colors. This
13
+ description: Return_Img is a gem designed to return random images and colors. This
14
14
  gem was created with the idea of returning a different image or color to a cascading
15
15
  style sheet. For the effect of having a different image return to the browser ever
16
16
  refresh or visit to the web page. Also in mind was the idea of expedition, by that