JeytasGem 0.0.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.
Files changed (2) hide show
  1. data/lib/module.rb +43 -0
  2. metadata +46 -0
@@ -0,0 +1,43 @@
1
+
2
+ class JeytasGem
3
+ def working?
4
+ puts "YES"
5
+ end
6
+ def help
7
+ puts "This is the Module Gem. You can find alot of useful thing in the @module class. "
8
+ end
9
+ def dir
10
+ puts Dir.pwd
11
+ end
12
+ def ls
13
+ puts Dir.pwd
14
+ end
15
+ end
16
+
17
+ class Mod
18
+ def initialize(name, developer, version)
19
+ @mod_name = name
20
+ @mod_developer = developer
21
+ @mod_version = version
22
+ end
23
+ def name
24
+ @mod_name
25
+ end
26
+ def developer
27
+ @mod_developer
28
+ end
29
+ def version
30
+ @mod_version
31
+ end
32
+ def create
33
+ @modded = true
34
+ Dir.mkdir("mods")
35
+ ownmod = File.new("mods/#{@mod_name}.rb", "w+")
36
+ ownmod.puts("WAS??")
37
+ end
38
+ def load_mod
39
+ load "mods/#{@mod_name}.rb"
40
+ end
41
+ end
42
+
43
+ @module = JeytasGem.new
metadata ADDED
@@ -0,0 +1,46 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: JeytasGem
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Marvin Johanning
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-12-18 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: A simple Module gem (My First gem)
15
+ email: marvin-johanning@web.de
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - lib/module.rb
21
+ homepage: http://jeytasgame.de.vc
22
+ licenses:
23
+ - MIT
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ none: false
36
+ requirements:
37
+ - - ! '>='
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ requirements: []
41
+ rubyforge_project:
42
+ rubygems_version: 1.8.23
43
+ signing_key:
44
+ specification_version: 3
45
+ summary: Modules
46
+ test_files: []