maddox-slideshower 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,23 @@
1
+ h1. Slideshower!
2
+
3
+ h2. What?
4
+
5
+ Simple way to generate the json that will power a future iPhone app that does simple slide shows.
6
+
7
+ h2. Install
8
+
9
+ gem install maddox-slideshower --source http://gems.github.com
10
+
11
+ h2. Usage
12
+
13
+ Go to a directory containing all the images you want in the slide show.
14
+
15
+ $ slideshower
16
+
17
+ Slideshower will take all the image files in the directory and put them into a json string located at index.json.
18
+
19
+ The url to this directory will eventually be used for a sweet free iPhone app. It's an easy way to show your client iPhone mocks.
20
+
21
+ h2. Copyright
22
+
23
+ Copyright (c) 2009 Jon Maddox. See LICENSE for details.
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 1
3
- :patch: 0
3
+ :patch: 1
4
4
  :major: 0
@@ -7,7 +7,7 @@ class Slideshower
7
7
 
8
8
  Dir.open(Dir.pwd).each do |file|
9
9
  next if file =~ /^\./ || file =~ /index.json/ || File.directory?(File.join(Dir.pwd,file))
10
- images << file
10
+ images << file if file =~ /\.jpg|jpeg|gif|png$/
11
11
  end
12
12
 
13
13
  File.new(File.join(Dir.pwd, "index.json"), 'w+').puts images.to_json
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maddox-slideshower
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Maddox
@@ -30,10 +30,10 @@ extensions: []
30
30
 
31
31
  extra_rdoc_files:
32
32
  - LICENSE
33
- - README.rdoc
33
+ - README.textile
34
34
  files:
35
35
  - LICENSE
36
- - README.rdoc
36
+ - README.textile
37
37
  - Rakefile
38
38
  - VERSION.yml
39
39
  - bin/slideshower
@@ -1,7 +0,0 @@
1
- = slideshower
2
-
3
- Description goes here.
4
-
5
- == Copyright
6
-
7
- Copyright (c) 2009 Jon Maddox. See LICENSE for details.