Dogeku 1.0.3 → 1.0.4
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.
- checksums.yaml +4 -4
- metadata +1 -5
- data/app/Historique/Action.rb +0 -29
- data/app/Historique/ChangerCase.rb +0 -44
- data/app/Historique/HistoriqueAction.rb +0 -114
- data/app/db/main.sqlite3 +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0fd8b738c757fbed8f7ce6db94aabb063c61feaa
|
|
4
|
+
data.tar.gz: 64c4691266ec989fac4b831df4a68e4faae1959e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3305d8a696d8b9847e154388c485364b394c12dbd690f65a96489f64b7c959068f3861fd724e9abe1dfb20f57705177cf98fbff0c957df27cf7ae0b1367f91bf
|
|
7
|
+
data.tar.gz: 9f2562e7c4e45aa6fe233f842bd570e04d397f42a757f2b91f3b36350ae49a4c5f232d9a509887c7ce73f7ded47ceab210d8d2b2e4cfc9cc5c95908e4fb1d9d0
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: Dogeku
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- DanAurea
|
|
@@ -27,9 +27,6 @@ extra_rdoc_files:
|
|
|
27
27
|
files:
|
|
28
28
|
- LICENSE
|
|
29
29
|
- README.md
|
|
30
|
-
- app/Historique/Action.rb
|
|
31
|
-
- app/Historique/ChangerCase.rb
|
|
32
|
-
- app/Historique/HistoriqueAction.rb
|
|
33
30
|
- app/components/CaseDessin.rb
|
|
34
31
|
- app/components/GrilleDessin.rb
|
|
35
32
|
- app/components/Header.rb
|
|
@@ -52,7 +49,6 @@ files:
|
|
|
52
49
|
- app/core/Core.rb
|
|
53
50
|
- app/core/Model.rb
|
|
54
51
|
- app/core/View.rb
|
|
55
|
-
- app/db/main.sqlite3
|
|
56
52
|
- app/model/Configuration.rb
|
|
57
53
|
- app/model/Grille.rb
|
|
58
54
|
- app/model/Jeu.rb
|
data/app/Historique/Action.rb
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# => Author:: keryann
|
|
2
|
-
# => Version:: 0.1
|
|
3
|
-
# => Copyright:: © 2016
|
|
4
|
-
# => License:: Distributes under the same terms as Ruby
|
|
5
|
-
|
|
6
|
-
##
|
|
7
|
-
## Classe Action permettant d'initialiser et afficher une étiquette
|
|
8
|
-
##
|
|
9
|
-
class Action
|
|
10
|
-
##VI
|
|
11
|
-
@etiquette
|
|
12
|
-
|
|
13
|
-
##
|
|
14
|
-
## Initialise l'étiquette
|
|
15
|
-
##
|
|
16
|
-
## @param etiquette The etiquette
|
|
17
|
-
##
|
|
18
|
-
def initialize(etiquette)
|
|
19
|
-
@etiquette=etiquette
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
##
|
|
23
|
-
## Affiche l'étiquette
|
|
24
|
-
##
|
|
25
|
-
def faire()
|
|
26
|
-
print @etiquette
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
end
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# => Author:: keryann
|
|
2
|
-
# => Version:: 0.1
|
|
3
|
-
# => Copyright:: © 2016
|
|
4
|
-
# => License:: Distributes under the same terms as Ruby
|
|
5
|
-
|
|
6
|
-
##
|
|
7
|
-
## Classe ChangerCase permettant de faire ou de défaire les actions de l'utilisateur
|
|
8
|
-
##
|
|
9
|
-
|
|
10
|
-
class ChangerCase < Action
|
|
11
|
-
##VI
|
|
12
|
-
@valeur
|
|
13
|
-
@ancienneValeur
|
|
14
|
-
@case
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
## Initialise
|
|
18
|
-
##
|
|
19
|
-
## @param cas Case à initialiser
|
|
20
|
-
## @param entier Valeur à affecter à la case
|
|
21
|
-
##
|
|
22
|
-
def initialize(cas, entier)
|
|
23
|
-
@case=cas
|
|
24
|
-
@valeur=entier
|
|
25
|
-
@ancienneValeur=nil
|
|
26
|
-
end
|
|
27
|
-
|
|
28
|
-
##
|
|
29
|
-
## Change la valeur de la case
|
|
30
|
-
##
|
|
31
|
-
def faire()
|
|
32
|
-
@ancienneValeur=@case.get
|
|
33
|
-
@case.set(@valeur)
|
|
34
|
-
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
##
|
|
38
|
-
## Défait le changement
|
|
39
|
-
##
|
|
40
|
-
def defaire()
|
|
41
|
-
@ancienneValeur=@valeur
|
|
42
|
-
@case.set(@ancienneValeur)
|
|
43
|
-
end
|
|
44
|
-
end
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
load "Action.rb"
|
|
2
|
-
|
|
3
|
-
## => Author:: keryann
|
|
4
|
-
## => version:: 0.1
|
|
5
|
-
## => copyright:: © 2016
|
|
6
|
-
## => license:: Distributes under the same terms as Ruby
|
|
7
|
-
|
|
8
|
-
##
|
|
9
|
-
## Classe pour l'historique des actions.
|
|
10
|
-
##--
|
|
11
|
-
## Regarder slice-1 pour enlever bas de la pile
|
|
12
|
-
##++
|
|
13
|
-
class HistoriqueAction
|
|
14
|
-
##VI
|
|
15
|
-
@pileRefaire
|
|
16
|
-
@pileDefaire
|
|
17
|
-
@maxActions
|
|
18
|
-
|
|
19
|
-
##
|
|
20
|
-
## Méthode qui effectue une action présente dans la pileDefaire
|
|
21
|
-
##
|
|
22
|
-
## @return lui-même
|
|
23
|
-
##
|
|
24
|
-
def faire()
|
|
25
|
-
action=@pileDefaire.last()
|
|
26
|
-
action.faire()
|
|
27
|
-
return self
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
##
|
|
32
|
-
## Méthode qui annule la dernière action et l'empile dans pileRefaire
|
|
33
|
-
##
|
|
34
|
-
## @return lui-même
|
|
35
|
-
##
|
|
36
|
-
def defaire()
|
|
37
|
-
@pileRefaire.push(@pileDefaire.pop())
|
|
38
|
-
action=@pileDefaire.last()
|
|
39
|
-
action.faire()
|
|
40
|
-
return self
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
##
|
|
45
|
-
## Méthode qui permet de refaire une action qu'on a annulé
|
|
46
|
-
##
|
|
47
|
-
## @return lui-même
|
|
48
|
-
##
|
|
49
|
-
def refaire()
|
|
50
|
-
@pileDefaire.push(@pileRefaire.pop())
|
|
51
|
-
action=@pileDefaire.last()
|
|
52
|
-
action.faire()
|
|
53
|
-
return self
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
##
|
|
58
|
-
## Fonction d'initialisation
|
|
59
|
-
##
|
|
60
|
-
def initialize()
|
|
61
|
-
@pileRefaire=[]
|
|
62
|
-
@pileDefaire=[]
|
|
63
|
-
@maxActions=10
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
##
|
|
68
|
-
## Ajoute une nouvelle fonction dans la pileDefaire
|
|
69
|
-
##
|
|
70
|
-
## @param action L'action à ajouter
|
|
71
|
-
##
|
|
72
|
-
## @return lui-même
|
|
73
|
-
##
|
|
74
|
-
def nouvelleAction(action)
|
|
75
|
-
@pileDefaire.push(action)
|
|
76
|
-
return self
|
|
77
|
-
end
|
|
78
|
-
|
|
79
|
-
##
|
|
80
|
-
## Défait une action
|
|
81
|
-
##
|
|
82
|
-
## @return L'action dépilée
|
|
83
|
-
##
|
|
84
|
-
def defaireAction()
|
|
85
|
-
action=@pileDefaire.pop
|
|
86
|
-
@pileRefaire.push(action)
|
|
87
|
-
return action
|
|
88
|
-
end
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
##
|
|
92
|
-
## Fonction de test
|
|
93
|
-
##
|
|
94
|
-
def HistoriqueAction.Test()
|
|
95
|
-
histo=HistoriqueAction.new()
|
|
96
|
-
act1=Action.new("Premiere action")
|
|
97
|
-
act2=Action.new("Deuxieme action")
|
|
98
|
-
#act3=Action.new("Troisieme action")
|
|
99
|
-
#act4=Action.new("Quatrieme action")
|
|
100
|
-
#act5=Action.new("Cinquieme action")
|
|
101
|
-
histo.nouvelleAction(act1)
|
|
102
|
-
histo.nouvelleAction(act2)
|
|
103
|
-
#histo.nouvelleAction(act3)
|
|
104
|
-
#histo.nouvelleAction(act4)
|
|
105
|
-
#histo.nouvelleAction(act5)
|
|
106
|
-
histo.faire()
|
|
107
|
-
print("\n")
|
|
108
|
-
histo.defaire()
|
|
109
|
-
print("\n")
|
|
110
|
-
histo.refaire()
|
|
111
|
-
end
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
HistoriqueAction.Test()
|
data/app/db/main.sqlite3
DELETED
|
Binary file
|